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

Side by Side Diff: src/arm/code-stubs-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_ARM 5 #if V8_TARGET_ARCH_ARM
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.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 3246 matching lines...) Expand 10 before | Expand all | Expand 10 after
3257 __ bind(&not_string); 3257 __ bind(&not_string);
3258 3258
3259 Label not_oddball; 3259 Label not_oddball;
3260 __ cmp(r1, Operand(ODDBALL_TYPE)); 3260 __ cmp(r1, Operand(ODDBALL_TYPE));
3261 __ b(ne, &not_oddball); 3261 __ b(ne, &not_oddball);
3262 __ ldr(r0, FieldMemOperand(r0, Oddball::kToNumberOffset)); 3262 __ ldr(r0, FieldMemOperand(r0, Oddball::kToNumberOffset));
3263 __ Ret(); 3263 __ Ret();
3264 __ bind(&not_oddball); 3264 __ bind(&not_oddball);
3265 3265
3266 __ push(r0); // Push argument. 3266 __ push(r0); // Push argument.
3267 __ InvokeBuiltin(Context::TO_NUMBER_BUILTIN_INDEX, JUMP_FUNCTION); 3267 __ TailCallRuntime(Runtime::kToNumber, 1, 1);
3268 } 3268 }
3269 3269
3270 3270
3271 void StringHelper::GenerateFlatOneByteStringEquals( 3271 void StringHelper::GenerateFlatOneByteStringEquals(
3272 MacroAssembler* masm, Register left, Register right, Register scratch1, 3272 MacroAssembler* masm, Register left, Register right, Register scratch1,
3273 Register scratch2, Register scratch3) { 3273 Register scratch2, Register scratch3) {
3274 Register length = scratch1; 3274 Register length = scratch1;
3275 3275
3276 // Compare lengths. 3276 // Compare lengths.
3277 Label strings_not_equal, check_zero_length; 3277 Label strings_not_equal, check_zero_length;
(...skipping 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after
5430 MemOperand(fp, 6 * kPointerSize), NULL); 5430 MemOperand(fp, 6 * kPointerSize), NULL);
5431 } 5431 }
5432 5432
5433 5433
5434 #undef __ 5434 #undef __
5435 5435
5436 } // namespace internal 5436 } // namespace internal
5437 } // namespace v8 5437 } // namespace v8
5438 5438
5439 #endif // V8_TARGET_ARCH_ARM 5439 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/arm64/code-stubs-arm64.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698