diff options
Diffstat (limited to 'deps/v8/src/assembler.cc')
-rw-r--r-- | deps/v8/src/assembler.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/deps/v8/src/assembler.cc b/deps/v8/src/assembler.cc index a736fb13f..dbf2742b2 100644 --- a/deps/v8/src/assembler.cc +++ b/deps/v8/src/assembler.cc @@ -44,6 +44,7 @@ #include "regexp-stack.h" #include "ast.h" #include "regexp-macro-assembler.h" +#include "platform.h" // Include native regexp-macro-assembler. #ifdef V8_NATIVE_REGEXP #if V8_TARGET_ARCH_IA32 @@ -563,11 +564,6 @@ ExternalReference ExternalReference::perform_gc_function() { } -ExternalReference ExternalReference::builtin_passed_function() { - return ExternalReference(&Builtins::builtin_passed_function); -} - - ExternalReference ExternalReference::random_positive_smi_function() { return ExternalReference(Redirect(FUNCTION_ADDR(V8::RandomPositiveSmi))); } @@ -659,7 +655,7 @@ ExternalReference ExternalReference::re_check_stack_guard_state() { #elif V8_TARGET_ARCH_ARM function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); #else - UNREACHABLE("Unexpected architecture"); + UNREACHABLE(); #endif return ExternalReference(Redirect(function)); } @@ -674,6 +670,10 @@ ExternalReference ExternalReference::re_case_insensitive_compare_uc16() { FUNCTION_ADDR(NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16))); } +ExternalReference ExternalReference::re_word_character_map() { + return ExternalReference( + NativeRegExpMacroAssembler::word_character_map_address()); +} ExternalReference ExternalReference::address_of_static_offsets_vector() { return ExternalReference(OffsetsVector::static_offsets_vector_address()); @@ -711,13 +711,13 @@ static double div_two_doubles(double x, double y) { static double mod_two_doubles(double x, double y) { - return fmod(x, y); + return modulo(x, y); } -static int native_compare_doubles(double x, double y) { - if (x == y) return 0; - return x < y ? 1 : -1; +static int native_compare_doubles(double y, double x) { + if (x == y) return EQUAL; + return x < y ? LESS : GREATER; } |