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

Side by Side Diff: src/ia32/lithium-ia32.cc

Issue 5753005: Make closures optimizable by Crankshaft compiler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Next round Created 9 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 | « src/ia32/lithium-ia32.h ('k') | src/objects.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 stream->Add("#%d / ", arity()); 250 stream->Add("#%d / ", arity());
251 } 251 }
252 252
253 253
254 void LUnaryMathOperation::PrintDataTo(StringStream* stream) { 254 void LUnaryMathOperation::PrintDataTo(StringStream* stream) {
255 stream->Add("/%s ", hydrogen()->OpName()); 255 stream->Add("/%s ", hydrogen()->OpName());
256 input()->PrintTo(stream); 256 input()->PrintTo(stream);
257 } 257 }
258 258
259 259
260 void LLoadContextSlot::PrintDataTo(StringStream* stream) {
261 stream->Add("(%d, %d)", context_chain_length(), slot_index());
262 }
263
264
260 void LCallKeyed::PrintDataTo(StringStream* stream) { 265 void LCallKeyed::PrintDataTo(StringStream* stream) {
261 stream->Add("[ecx] #%d / ", arity()); 266 stream->Add("[ecx] #%d / ", arity());
262 } 267 }
263 268
264 269
265 void LCallNamed::PrintDataTo(StringStream* stream) { 270 void LCallNamed::PrintDataTo(StringStream* stream) {
266 SmartPointer<char> name_string = name()->ToCString(); 271 SmartPointer<char> name_string = name()->ToCString();
267 stream->Add("%s #%d / ", *name_string, arity()); 272 stream->Add("%s #%d / ", *name_string, arity());
268 } 273 }
269 274
(...skipping 1356 matching lines...) Expand 10 before | Expand all | Expand 10 after
1626 ? AssignEnvironment(DefineAsRegister(result)) 1631 ? AssignEnvironment(DefineAsRegister(result))
1627 : DefineAsRegister(result); 1632 : DefineAsRegister(result);
1628 } 1633 }
1629 1634
1630 1635
1631 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1636 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
1632 return new LStoreGlobal(UseRegisterAtStart(instr->value())); 1637 return new LStoreGlobal(UseRegisterAtStart(instr->value()));
1633 } 1638 }
1634 1639
1635 1640
1641 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1642 return DefineAsRegister(new LLoadContextSlot);
1643 }
1644
1645
1636 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 1646 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
1637 ASSERT(instr->representation().IsTagged()); 1647 ASSERT(instr->representation().IsTagged());
1638 LOperand* obj = UseRegisterAtStart(instr->object()); 1648 LOperand* obj = UseRegisterAtStart(instr->object());
1639 return DefineAsRegister(new LLoadNamedField(obj)); 1649 return DefineAsRegister(new LLoadNamedField(obj));
1640 } 1650 }
1641 1651
1642 1652
1643 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { 1653 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
1644 LOperand* object = UseFixed(instr->object(), eax); 1654 LOperand* object = UseFixed(instr->object(), eax);
1645 LLoadNamedGeneric* result = new LLoadNamedGeneric(object); 1655 LLoadNamedGeneric* result = new LLoadNamedGeneric(object);
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1873 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1883 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1874 HEnvironment* outer = current_block_->last_environment()->outer(); 1884 HEnvironment* outer = current_block_->last_environment()->outer();
1875 current_block_->UpdateEnvironment(outer); 1885 current_block_->UpdateEnvironment(outer);
1876 return NULL; 1886 return NULL;
1877 } 1887 }
1878 1888
1879 1889
1880 } } // namespace v8::internal 1890 } } // namespace v8::internal
1881 1891
1882 #endif // V8_TARGET_ARCH_IA32 1892 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698