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

Side by Side Diff: src/arm64/lithium-codegen-arm64.cc

Issue 247373002: CallICStub with a "never patch" approach until customization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE + code size multiplier. Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/ast.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "arm64/lithium-codegen-arm64.h" 7 #include "arm64/lithium-codegen-arm64.h"
8 #include "arm64/lithium-gap-resolver-arm64.h" 8 #include "arm64/lithium-gap-resolver-arm64.h"
9 #include "code-stubs.h" 9 #include "code-stubs.h"
10 #include "stub-cache.h" 10 #include "stub-cache.h"
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 414
415 void LCodeGen::DoCallNew(LCallNew* instr) { 415 void LCodeGen::DoCallNew(LCallNew* instr) {
416 ASSERT(ToRegister(instr->context()).is(cp)); 416 ASSERT(ToRegister(instr->context()).is(cp));
417 ASSERT(instr->IsMarkedAsCall()); 417 ASSERT(instr->IsMarkedAsCall());
418 ASSERT(ToRegister(instr->constructor()).is(x1)); 418 ASSERT(ToRegister(instr->constructor()).is(x1));
419 419
420 __ Mov(x0, instr->arity()); 420 __ Mov(x0, instr->arity());
421 // No cell in x2 for construct type feedback in optimized code. 421 // No cell in x2 for construct type feedback in optimized code.
422 __ LoadRoot(x2, Heap::kUndefinedValueRootIndex); 422 __ LoadRoot(x2, Heap::kUndefinedValueRootIndex);
423 423
424 CallConstructStub stub(isolate(), NO_CALL_FUNCTION_FLAGS); 424 CallConstructStub stub(isolate(), NO_CALL_CONSTRUCTOR_FLAGS);
425 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); 425 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr);
426 426
427 ASSERT(ToRegister(instr->result()).is(x0)); 427 ASSERT(ToRegister(instr->result()).is(x0));
428 } 428 }
429 429
430 430
431 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { 431 void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
432 ASSERT(instr->IsMarkedAsCall()); 432 ASSERT(instr->IsMarkedAsCall());
433 ASSERT(ToRegister(instr->context()).is(cp)); 433 ASSERT(ToRegister(instr->context()).is(cp));
434 ASSERT(ToRegister(instr->constructor()).is(x1)); 434 ASSERT(ToRegister(instr->constructor()).is(x1));
(...skipping 5441 matching lines...) Expand 10 before | Expand all | Expand 10 after
5876 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); 5876 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset));
5877 // Index is equal to negated out of object property index plus 1. 5877 // Index is equal to negated out of object property index plus 1.
5878 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5878 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5879 __ Ldr(result, FieldMemOperand(result, 5879 __ Ldr(result, FieldMemOperand(result,
5880 FixedArray::kHeaderSize - kPointerSize)); 5880 FixedArray::kHeaderSize - kPointerSize));
5881 __ Bind(deferred->exit()); 5881 __ Bind(deferred->exit());
5882 __ Bind(&done); 5882 __ Bind(&done);
5883 } 5883 }
5884 5884
5885 } } // namespace v8::internal 5885 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698