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

Side by Side Diff: src/ia32/lithium-codegen-ia32.h

Issue 12613004: To fully support hydrogen code stubs which accept a variable number of arguments, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: The start environment for a hydrogen stub is initialized twice (fixed). Created 7 years, 9 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/deoptimizer-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.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 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 int GetNextEmittedBlock(int block); 183 int GetNextEmittedBlock(int block);
184 184
185 void EmitClassOfTest(Label* if_true, 185 void EmitClassOfTest(Label* if_true,
186 Label* if_false, 186 Label* if_false,
187 Handle<String> class_name, 187 Handle<String> class_name,
188 Register input, 188 Register input,
189 Register temporary, 189 Register temporary,
190 Register temporary2); 190 Register temporary2);
191 191
192 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } 192 int GetStackSlotCount() const { return chunk()->spill_slot_count(); }
193 int GetParameterCount() const { return info()->num_parameters(); }
194 193
195 void Abort(const char* reason); 194 void Abort(const char* reason);
196 void Comment(const char* format, ...); 195 void Comment(const char* format, ...);
197 196
198 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } 197 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); }
199 198
200 // Code generation passes. Returns true if code generation should 199 // Code generation passes. Returns true if code generation should
201 // continue. 200 // continue.
202 bool GeneratePrologue(); 201 bool GeneratePrologue();
203 bool GenerateBody(); 202 bool GenerateBody();
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 AllocationSiteMode mode); 357 AllocationSiteMode mode);
359 358
360 void EnsureSpaceForLazyDeopt(); 359 void EnsureSpaceForLazyDeopt();
361 void DoLoadKeyedExternalArray(LLoadKeyed* instr); 360 void DoLoadKeyedExternalArray(LLoadKeyed* instr);
362 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr); 361 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr);
363 void DoLoadKeyedFixedArray(LLoadKeyed* instr); 362 void DoLoadKeyedFixedArray(LLoadKeyed* instr);
364 void DoStoreKeyedExternalArray(LStoreKeyed* instr); 363 void DoStoreKeyedExternalArray(LStoreKeyed* instr);
365 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr); 364 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr);
366 void DoStoreKeyedFixedArray(LStoreKeyed* instr); 365 void DoStoreKeyedFixedArray(LStoreKeyed* instr);
367 366
367 void EmitReturn(LReturn* instr, bool dynamic_frame_alignment);
368
368 // Emits code for pushing either a tagged constant, a (non-double) 369 // Emits code for pushing either a tagged constant, a (non-double)
369 // register, or a stack slot operand. 370 // register, or a stack slot operand.
370 void EmitPushTaggedOperand(LOperand* operand); 371 void EmitPushTaggedOperand(LOperand* operand);
371 372
372 Zone* zone_; 373 Zone* zone_;
373 LPlatformChunk* const chunk_; 374 LPlatformChunk* const chunk_;
374 MacroAssembler* const masm_; 375 MacroAssembler* const masm_;
375 CompilationInfo* const info_; 376 CompilationInfo* const info_;
376 377
377 struct JumpTableEntry { 378 struct JumpTableEntry {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 LCodeGen* codegen_; 467 LCodeGen* codegen_;
467 Label entry_; 468 Label entry_;
468 Label exit_; 469 Label exit_;
469 Label* external_exit_; 470 Label* external_exit_;
470 int instruction_index_; 471 int instruction_index_;
471 }; 472 };
472 473
473 } } // namespace v8::internal 474 } } // namespace v8::internal
474 475
475 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 476 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/deoptimizer-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698