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

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

Issue 26841009: Make TestJSArrayForAllocationMemento less awkward. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments addressed. Created 7 years, 2 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/x64/codegen-x64.cc ('k') | src/x64/macro-assembler-x64.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 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 4239 matching lines...) Expand 10 before | Expand all | Expand 10 after
4250 RecordSafepointWithRegisters( 4250 RecordSafepointWithRegisters(
4251 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); 4251 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt);
4252 } 4252 }
4253 __ bind(&not_applicable); 4253 __ bind(&not_applicable);
4254 } 4254 }
4255 4255
4256 4256
4257 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { 4257 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) {
4258 Register object = ToRegister(instr->object()); 4258 Register object = ToRegister(instr->object());
4259 Register temp = ToRegister(instr->temp()); 4259 Register temp = ToRegister(instr->temp());
4260 __ TestJSArrayForAllocationMemento(object, temp); 4260 Label no_memento_found;
4261 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found);
4261 DeoptimizeIf(equal, instr->environment()); 4262 DeoptimizeIf(equal, instr->environment());
4263 __ bind(&no_memento_found);
4262 } 4264 }
4263 4265
4264 4266
4265 void LCodeGen::DoStringAdd(LStringAdd* instr) { 4267 void LCodeGen::DoStringAdd(LStringAdd* instr) {
4266 EmitPushTaggedOperand(instr->left()); 4268 EmitPushTaggedOperand(instr->left());
4267 EmitPushTaggedOperand(instr->right()); 4269 EmitPushTaggedOperand(instr->right());
4268 StringAddStub stub(instr->hydrogen()->flags()); 4270 StringAddStub stub(instr->hydrogen()->flags());
4269 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 4271 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
4270 } 4272 }
4271 4273
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
5452 FixedArray::kHeaderSize - kPointerSize)); 5454 FixedArray::kHeaderSize - kPointerSize));
5453 __ bind(&done); 5455 __ bind(&done);
5454 } 5456 }
5455 5457
5456 5458
5457 #undef __ 5459 #undef __
5458 5460
5459 } } // namespace v8::internal 5461 } } // namespace v8::internal
5460 5462
5461 #endif // V8_TARGET_ARCH_X64 5463 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698