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

Side by Side Diff: src/ppc/code-stubs-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 3415 matching lines...) Expand 10 before | Expand all | Expand 10 after
3426 __ bind(&not_string); 3426 __ bind(&not_string);
3427 3427
3428 Label not_oddball; 3428 Label not_oddball;
3429 __ cmpi(r4, Operand(ODDBALL_TYPE)); 3429 __ cmpi(r4, Operand(ODDBALL_TYPE));
3430 __ bne(&not_oddball); 3430 __ bne(&not_oddball);
3431 __ LoadP(r3, FieldMemOperand(r3, Oddball::kToNumberOffset)); 3431 __ LoadP(r3, FieldMemOperand(r3, Oddball::kToNumberOffset));
3432 __ blr(); 3432 __ blr();
3433 __ bind(&not_oddball); 3433 __ bind(&not_oddball);
3434 3434
3435 __ push(r3); // Push argument. 3435 __ push(r3); // Push argument.
3436 __ InvokeBuiltin(Context::TO_NUMBER_BUILTIN_INDEX, JUMP_FUNCTION); 3436 __ TailCallRuntime(Runtime::kToNumber, 1, 1);
3437 } 3437 }
3438 3438
3439 3439
3440 void StringHelper::GenerateFlatOneByteStringEquals(MacroAssembler* masm, 3440 void StringHelper::GenerateFlatOneByteStringEquals(MacroAssembler* masm,
3441 Register left, 3441 Register left,
3442 Register right, 3442 Register right,
3443 Register scratch1, 3443 Register scratch1,
3444 Register scratch2) { 3444 Register scratch2) {
3445 Register length = scratch1; 3445 Register length = scratch1;
3446 3446
(...skipping 2280 matching lines...) Expand 10 before | Expand all | Expand 10 after
5727 kStackUnwindSpace, NULL, 5727 kStackUnwindSpace, NULL,
5728 MemOperand(fp, 6 * kPointerSize), NULL); 5728 MemOperand(fp, 6 * kPointerSize), NULL);
5729 } 5729 }
5730 5730
5731 5731
5732 #undef __ 5732 #undef __
5733 } // namespace internal 5733 } // namespace internal
5734 } // namespace v8 5734 } // namespace v8
5735 5735
5736 #endif // V8_TARGET_ARCH_PPC 5736 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« src/objects.cc ('K') | « src/objects-inl.h ('k') | src/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698