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

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

Issue 226233002: Revert "Reland of https://codereview.chromium.org/172523002/" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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_CONSTRUCTOR_FLAGS); 447 CallConstructStub stub(NO_CALL_FUNCTION_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 5461 matching lines...) Expand 10 before | Expand all | Expand 10 after
5919 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); 5919 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset));
5920 // Index is equal to negated out of object property index plus 1. 5920 // Index is equal to negated out of object property index plus 1.
5921 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5921 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5922 __ Ldr(result, FieldMemOperand(result, 5922 __ Ldr(result, FieldMemOperand(result,
5923 FixedArray::kHeaderSize - kPointerSize)); 5923 FixedArray::kHeaderSize - kPointerSize));
5924 __ Bind(deferred->exit()); 5924 __ Bind(deferred->exit());
5925 __ Bind(&done); 5925 __ Bind(&done);
5926 } 5926 }
5927 5927
5928 } } // namespace v8::internal 5928 } } // 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