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

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

Issue 141893002: We no longer need to recover type cells from the oracle. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. Created 6 years, 11 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 | « no previous file | src/ast.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 4037 matching lines...) Expand 10 before | Expand all | Expand 10 after
4048 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); 4048 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr);
4049 } 4049 }
4050 4050
4051 4051
4052 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { 4052 void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
4053 ASSERT(ToRegister(instr->context()).is(cp)); 4053 ASSERT(ToRegister(instr->context()).is(cp));
4054 ASSERT(ToRegister(instr->constructor()).is(r1)); 4054 ASSERT(ToRegister(instr->constructor()).is(r1));
4055 ASSERT(ToRegister(instr->result()).is(r0)); 4055 ASSERT(ToRegister(instr->result()).is(r0));
4056 4056
4057 __ mov(r0, Operand(instr->arity())); 4057 __ mov(r0, Operand(instr->arity()));
4058 __ mov(r2, Operand(instr->hydrogen()->property_cell())); 4058 __ mov(r2, Operand(factory()->undefined_value()));
4059 ElementsKind kind = instr->hydrogen()->elements_kind(); 4059 ElementsKind kind = instr->hydrogen()->elements_kind();
4060 AllocationSiteOverrideMode override_mode = 4060 AllocationSiteOverrideMode override_mode =
4061 (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE) 4061 (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE)
4062 ? DISABLE_ALLOCATION_SITES 4062 ? DISABLE_ALLOCATION_SITES
4063 : DONT_OVERRIDE; 4063 : DONT_OVERRIDE;
4064 4064
4065 if (instr->arity() == 0) { 4065 if (instr->arity() == 0) {
4066 ArrayNoArgumentConstructorStub stub(kind, override_mode); 4066 ArrayNoArgumentConstructorStub stub(kind, override_mode);
4067 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); 4067 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr);
4068 } else if (instr->arity() == 1) { 4068 } else if (instr->arity() == 1) {
(...skipping 1762 matching lines...) Expand 10 before | Expand all | Expand 10 after
5831 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5831 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5832 __ ldr(result, FieldMemOperand(scratch, 5832 __ ldr(result, FieldMemOperand(scratch,
5833 FixedArray::kHeaderSize - kPointerSize)); 5833 FixedArray::kHeaderSize - kPointerSize));
5834 __ bind(&done); 5834 __ bind(&done);
5835 } 5835 }
5836 5836
5837 5837
5838 #undef __ 5838 #undef __
5839 5839
5840 } } // namespace v8::internal 5840 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698