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

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

Issue 172523002: Create a function call IC (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 8 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 437
438 void LCodeGen::DoCallNew(LCallNew* instr) { 438 void LCodeGen::DoCallNew(LCallNew* instr) {
439 ASSERT(ToRegister(instr->context()).is(cp)); 439 ASSERT(ToRegister(instr->context()).is(cp));
440 ASSERT(instr->IsMarkedAsCall()); 440 ASSERT(instr->IsMarkedAsCall());
441 ASSERT(ToRegister(instr->constructor()).is(x1)); 441 ASSERT(ToRegister(instr->constructor()).is(x1));
442 442
443 __ Mov(x0, instr->arity()); 443 __ Mov(x0, instr->arity());
444 // No cell in x2 for construct type feedback in optimized code. 444 // No cell in x2 for construct type feedback in optimized code.
445 __ LoadRoot(x2, Heap::kUndefinedValueRootIndex); 445 __ LoadRoot(x2, Heap::kUndefinedValueRootIndex);
446 446
447 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); 447 CallConstructStub stub(NO_CALL_CONSTRUCTOR_FLAGS);
448 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); 448 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr);
449 449
450 ASSERT(ToRegister(instr->result()).is(x0)); 450 ASSERT(ToRegister(instr->result()).is(x0));
451 } 451 }
452 452
453 453
454 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { 454 void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
455 ASSERT(instr->IsMarkedAsCall()); 455 ASSERT(instr->IsMarkedAsCall());
456 ASSERT(ToRegister(instr->context()).is(cp)); 456 ASSERT(ToRegister(instr->context()).is(cp));
457 ASSERT(ToRegister(instr->constructor()).is(x1)); 457 ASSERT(ToRegister(instr->constructor()).is(x1));
(...skipping 5492 matching lines...) Expand 10 before | Expand all | Expand 10 after
5950 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); 5950 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset));
5951 // Index is equal to negated out of object property index plus 1. 5951 // Index is equal to negated out of object property index plus 1.
5952 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5952 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5953 __ Ldr(result, FieldMemOperand(result, 5953 __ Ldr(result, FieldMemOperand(result,
5954 FixedArray::kHeaderSize - kPointerSize)); 5954 FixedArray::kHeaderSize - kPointerSize));
5955 __ Bind(deferred->exit()); 5955 __ Bind(deferred->exit());
5956 __ Bind(&done); 5956 __ Bind(&done);
5957 } 5957 }
5958 5958
5959 } } // namespace v8::internal 5959 } } // 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