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

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

Issue 11818021: Allocation Info Tracking, continued. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 7 years, 10 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
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 4212 matching lines...) Expand 10 before | Expand all | Expand 10 after
4223 instr, 4223 instr,
4224 CALL_AS_FUNCTION, 4224 CALL_AS_FUNCTION,
4225 R1_UNINITIALIZED); 4225 R1_UNINITIALIZED);
4226 } 4226 }
4227 4227
4228 4228
4229 void LCodeGen::DoCallNew(LCallNew* instr) { 4229 void LCodeGen::DoCallNew(LCallNew* instr) {
4230 ASSERT(ToRegister(instr->constructor()).is(r1)); 4230 ASSERT(ToRegister(instr->constructor()).is(r1));
4231 ASSERT(ToRegister(instr->result()).is(r0)); 4231 ASSERT(ToRegister(instr->result()).is(r0));
4232 4232
4233 __ mov(r0, Operand(instr->arity()));
4234 // No cell in r2 for construct type feedback in optimized code
4235 Handle<Object> undefined_value(isolate()->heap()->undefined_value());
4236 __ mov(r2, Operand(undefined_value));
4233 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); 4237 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS);
4238 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr);
4239 }
4240
4241
4242 void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
4243 ASSERT(ToRegister(instr->constructor()).is(r1));
4244 ASSERT(ToRegister(instr->result()).is(r0));
4245
4234 __ mov(r0, Operand(instr->arity())); 4246 __ mov(r0, Operand(instr->arity()));
4235 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); 4247 __ mov(r2, Operand(instr->hydrogen()->property_cell()));
4248 Handle<Code> array_construct_code =
4249 isolate()->builtins()->ArrayConstructCode();
4250
4251 CallCode(array_construct_code, RelocInfo::CONSTRUCT_CALL, instr);
4236 } 4252 }
4237 4253
4238 4254
4239 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { 4255 void LCodeGen::DoCallRuntime(LCallRuntime* instr) {
4240 CallRuntime(instr->function(), instr->arity(), instr); 4256 CallRuntime(instr->function(), instr->arity(), instr);
4241 } 4257 }
4242 4258
4243 4259
4244 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { 4260 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) {
4245 Register object = ToRegister(instr->object()); 4261 Register object = ToRegister(instr->object());
(...skipping 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after
6285 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 6301 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
6286 __ ldr(result, FieldMemOperand(scratch, 6302 __ ldr(result, FieldMemOperand(scratch,
6287 FixedArray::kHeaderSize - kPointerSize)); 6303 FixedArray::kHeaderSize - kPointerSize));
6288 __ bind(&done); 6304 __ bind(&done);
6289 } 6305 }
6290 6306
6291 6307
6292 #undef __ 6308 #undef __
6293 6309
6294 } } // namespace v8::internal 6310 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/ast.h » ('j') | src/builtins.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698