Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/arm64/code-stubs-arm64.cc

Issue 1306303003: [es6] Implement spec compliant ToPrimitive in the runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address Michis comments. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 3977 matching lines...) Expand 10 before | Expand all | Expand 10 after
3988 __ Bind(&not_string); 3988 __ Bind(&not_string);
3989 3989
3990 Label not_oddball; 3990 Label not_oddball;
3991 __ Cmp(x1, ODDBALL_TYPE); 3991 __ Cmp(x1, ODDBALL_TYPE);
3992 __ B(ne, &not_oddball); 3992 __ B(ne, &not_oddball);
3993 __ Ldr(x0, FieldMemOperand(x0, Oddball::kToNumberOffset)); 3993 __ Ldr(x0, FieldMemOperand(x0, Oddball::kToNumberOffset));
3994 __ Ret(); 3994 __ Ret();
3995 __ Bind(&not_oddball); 3995 __ Bind(&not_oddball);
3996 3996
3997 __ Push(x0); // Push argument. 3997 __ Push(x0); // Push argument.
3998 __ InvokeBuiltin(Context::TO_NUMBER_BUILTIN_INDEX, JUMP_FUNCTION); 3998 __ TailCallRuntime(Runtime::kToNumber, 1, 1);
3999 } 3999 }
4000 4000
4001 4001
4002 void StringHelper::GenerateFlatOneByteStringEquals( 4002 void StringHelper::GenerateFlatOneByteStringEquals(
4003 MacroAssembler* masm, Register left, Register right, Register scratch1, 4003 MacroAssembler* masm, Register left, Register right, Register scratch1,
4004 Register scratch2, Register scratch3) { 4004 Register scratch2, Register scratch3) {
4005 DCHECK(!AreAliased(left, right, scratch1, scratch2, scratch3)); 4005 DCHECK(!AreAliased(left, right, scratch1, scratch2, scratch3));
4006 Register result = x0; 4006 Register result = x0;
4007 Register left_length = scratch1; 4007 Register left_length = scratch1;
4008 Register right_length = scratch2; 4008 Register right_length = scratch2;
(...skipping 1902 matching lines...) Expand 10 before | Expand all | Expand 10 after
5911 MemOperand(fp, 6 * kPointerSize), NULL); 5911 MemOperand(fp, 6 * kPointerSize), NULL);
5912 } 5912 }
5913 5913
5914 5914
5915 #undef __ 5915 #undef __
5916 5916
5917 } // namespace internal 5917 } // namespace internal
5918 } // namespace v8 5918 } // namespace v8
5919 5919
5920 #endif // V8_TARGET_ARCH_ARM64 5920 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/compiler/linkage.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698