diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2015-06-19 13:23:56 +0200 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2015-08-04 11:56:14 -0700 |
commit | 70d1f32f5605465a1a630a64f6f0d35f96c7709d (patch) | |
tree | 0a349040a686eafcb0a09943ebc733477dce2781 /deps/v8/src/assembler.cc | |
parent | 4643b8b6671607a7aff60cbbd0b384dcf2f6959e (diff) | |
download | android-node-v8-70d1f32f5605465a1a630a64f6f0d35f96c7709d.tar.gz android-node-v8-70d1f32f5605465a1a630a64f6f0d35f96c7709d.tar.bz2 android-node-v8-70d1f32f5605465a1a630a64f6f0d35f96c7709d.zip |
deps: update v8 to 4.4.63.9
Upgrade the bundled V8 and update code in src/ and lib/ to the new API.
Notable backwards incompatible changes are the removal of the smalloc
module and dropped support for CESU-8 decoding. CESU-8 support can be
brought back if necessary by doing UTF-8 decoding ourselves.
This commit includes https://codereview.chromium.org/1192973004 to fix
a build error on python 2.6 systems. The original commit log follows:
Use optparse in js2c.py for python compatibility
Without this change, V8 won't build on RHEL/CentOS 6 because the
distro python is too old to know about the argparse module.
PR-URL: https://github.com/nodejs/io.js/pull/2022
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'deps/v8/src/assembler.cc')
-rw-r--r-- | deps/v8/src/assembler.cc | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/deps/v8/src/assembler.cc b/deps/v8/src/assembler.cc index ffee104619..1464074b89 100644 --- a/deps/v8/src/assembler.cc +++ b/deps/v8/src/assembler.cc @@ -40,6 +40,7 @@ #include "src/base/functional.h" #include "src/base/lazy-instance.h" #include "src/base/platform/platform.h" +#include "src/base/utils/random-number-generator.h" #include "src/builtins.h" #include "src/codegen.h" #include "src/counters.h" @@ -49,7 +50,6 @@ #include "src/execution.h" #include "src/ic/ic.h" #include "src/ic/stub-cache.h" -#include "src/isolate-inl.h" #include "src/jsregexp.h" #include "src/regexp-macro-assembler.h" #include "src/regexp-stack.h" @@ -1216,30 +1216,15 @@ ExternalReference ExternalReference::new_space_allocation_limit_address( } -ExternalReference ExternalReference::old_pointer_space_allocation_top_address( +ExternalReference ExternalReference::old_space_allocation_top_address( Isolate* isolate) { - return ExternalReference( - isolate->heap()->OldPointerSpaceAllocationTopAddress()); -} - - -ExternalReference ExternalReference::old_pointer_space_allocation_limit_address( - Isolate* isolate) { - return ExternalReference( - isolate->heap()->OldPointerSpaceAllocationLimitAddress()); + return ExternalReference(isolate->heap()->OldSpaceAllocationTopAddress()); } -ExternalReference ExternalReference::old_data_space_allocation_top_address( +ExternalReference ExternalReference::old_space_allocation_limit_address( Isolate* isolate) { - return ExternalReference(isolate->heap()->OldDataSpaceAllocationTopAddress()); -} - - -ExternalReference ExternalReference::old_data_space_allocation_limit_address( - Isolate* isolate) { - return ExternalReference( - isolate->heap()->OldDataSpaceAllocationLimitAddress()); + return ExternalReference(isolate->heap()->OldSpaceAllocationLimitAddress()); } @@ -1630,19 +1615,20 @@ bool PositionsRecorder::WriteRecordedPositions() { EnsureSpace ensure_space(assembler_); assembler_->RecordRelocInfo(RelocInfo::STATEMENT_POSITION, state_.current_statement_position); - state_.written_statement_position = state_.current_statement_position; written = true; } + state_.written_statement_position = state_.current_statement_position; // Write the position if it is different from what was written last time and - // also different from the written statement position. + // also different from the statement position that was just written. if (state_.current_position != state_.written_position && - state_.current_position != state_.written_statement_position) { + (state_.current_position != state_.written_statement_position || + !written)) { EnsureSpace ensure_space(assembler_); assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); - state_.written_position = state_.current_position; written = true; } + state_.written_position = state_.current_position; // Return whether something was written. return written; |