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

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

Issue 11659022: Generate the TransitionElementsStub using Crankshaft (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review feedback 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
« 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 instructions_(chunk->instructions()), 56 instructions_(chunk->instructions()),
57 deoptimizations_(4, info->zone()), 57 deoptimizations_(4, info->zone()),
58 jump_table_(4, info->zone()), 58 jump_table_(4, info->zone()),
59 deoptimization_literals_(8, info->zone()), 59 deoptimization_literals_(8, info->zone()),
60 inlined_function_count_(0), 60 inlined_function_count_(0),
61 scope_(info->scope()), 61 scope_(info->scope()),
62 status_(UNUSED), 62 status_(UNUSED),
63 translations_(info->zone()), 63 translations_(info->zone()),
64 deferred_(8, info->zone()), 64 deferred_(8, info->zone()),
65 dynamic_frame_alignment_(false), 65 dynamic_frame_alignment_(false),
66 support_aligned_spilled_doubles_(false),
66 osr_pc_offset_(-1), 67 osr_pc_offset_(-1),
67 last_lazy_deopt_pc_(0), 68 last_lazy_deopt_pc_(0),
68 frame_is_built_(false), 69 frame_is_built_(false),
69 safepoints_(info->zone()), 70 safepoints_(info->zone()),
70 resolver_(this), 71 resolver_(this),
71 expected_safepoint_kind_(Safepoint::kSimple) { 72 expected_safepoint_kind_(Safepoint::kSimple) {
72 PopulateDeoptimizationLiteralsWithInlinedFunctions(); 73 PopulateDeoptimizationLiteralsWithInlinedFunctions();
73 } 74 }
74 75
75 // Simple accessors. 76 // Simple accessors.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 LOperand* value, 127 LOperand* value,
127 IntegerSignedness signedness); 128 IntegerSignedness signedness);
128 129
129 void DoDeferredTaggedToI(LTaggedToI* instr); 130 void DoDeferredTaggedToI(LTaggedToI* instr);
130 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); 131 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr);
131 void DoDeferredStackCheck(LStackCheck* instr); 132 void DoDeferredStackCheck(LStackCheck* instr);
132 void DoDeferredRandom(LRandom* instr); 133 void DoDeferredRandom(LRandom* instr);
133 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); 134 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr);
134 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); 135 void DoDeferredStringCharFromCode(LStringCharFromCode* instr);
135 void DoDeferredAllocateObject(LAllocateObject* instr); 136 void DoDeferredAllocateObject(LAllocateObject* instr);
137 void DoDeferredAllocate(LAllocate* instr);
136 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, 138 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr,
137 Label* map_check); 139 Label* map_check);
138 140
139 void DoCheckMapCommon(Register reg, Handle<Map> map, 141 void DoCheckMapCommon(Register reg, Handle<Map> map,
140 CompareMapMode mode, LInstruction* instr); 142 CompareMapMode mode, LInstruction* instr);
141 143
142 // Parallel move support. 144 // Parallel move support.
143 void DoParallelMove(LParallelMove* move); 145 void DoParallelMove(LParallelMove* move);
144 void DoGap(LGap* instr); 146 void DoGap(LGap* instr);
145 147
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 LInstruction* instr) { 227 LInstruction* instr) {
226 const Runtime::Function* function = Runtime::FunctionForId(id); 228 const Runtime::Function* function = Runtime::FunctionForId(id);
227 CallRuntime(function, argc, instr); 229 CallRuntime(function, argc, instr);
228 } 230 }
229 231
230 void CallRuntimeFromDeferred(Runtime::FunctionId id, 232 void CallRuntimeFromDeferred(Runtime::FunctionId id,
231 int argc, 233 int argc,
232 LInstruction* instr, 234 LInstruction* instr,
233 LOperand* context); 235 LOperand* context);
234 236
237 void LoadContextFromDeferred(LOperand* context);
238
235 enum EDIState { 239 enum EDIState {
236 EDI_UNINITIALIZED, 240 EDI_UNINITIALIZED,
237 EDI_CONTAINS_TARGET 241 EDI_CONTAINS_TARGET
238 }; 242 };
239 243
240 // Generate a direct call to a known function. Expects the function 244 // Generate a direct call to a known function. Expects the function
241 // to be in edi. 245 // to be in edi.
242 void CallKnownFunction(Handle<JSFunction> function, 246 void CallKnownFunction(Handle<JSFunction> function,
243 int arity, 247 int arity,
244 LInstruction* instr, 248 LInstruction* instr,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); 298 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode);
295 void RecordSafepoint(Safepoint::DeoptMode mode); 299 void RecordSafepoint(Safepoint::DeoptMode mode);
296 void RecordSafepointWithRegisters(LPointerMap* pointers, 300 void RecordSafepointWithRegisters(LPointerMap* pointers,
297 int arguments, 301 int arguments,
298 Safepoint::DeoptMode mode); 302 Safepoint::DeoptMode mode);
299 void RecordPosition(int position); 303 void RecordPosition(int position);
300 304
301 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 305 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
302 void EmitGoto(int block); 306 void EmitGoto(int block);
303 void EmitBranch(int left_block, int right_block, Condition cc); 307 void EmitBranch(int left_block, int right_block, Condition cc);
304 void EmitNumberUntagD(Register input, 308 void EmitNumberUntagD(
305 Register temp, 309 Register input,
306 XMMRegister result, 310 Register temp,
307 bool deoptimize_on_undefined, 311 XMMRegister result,
308 bool deoptimize_on_minus_zero, 312 bool deoptimize_on_undefined,
309 LEnvironment* env); 313 bool deoptimize_on_minus_zero,
314 LEnvironment* env,
315 NumberUntagDMode mode = NUMBER_CANDIDATE_IS_ANY_TAGGED);
310 316
311 void DeoptIfTaggedButNotSmi(LEnvironment* environment, 317 void DeoptIfTaggedButNotSmi(LEnvironment* environment,
312 HValue* value, 318 HValue* value,
313 LOperand* operand); 319 LOperand* operand);
314 320
315 // Emits optimized code for typeof x == "y". Modifies input register. 321 // Emits optimized code for typeof x == "y". Modifies input register.
316 // Returns the condition on which a final split to 322 // Returns the condition on which a final split to
317 // true and false label should be made, to optimize fallthrough. 323 // true and false label should be made, to optimize fallthrough.
318 Condition EmitTypeofIs(Label* true_label, 324 Condition EmitTypeofIs(Label* true_label,
319 Label* false_label, 325 Label* false_label,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 const ZoneList<LInstruction*>* instructions_; 393 const ZoneList<LInstruction*>* instructions_;
388 ZoneList<LEnvironment*> deoptimizations_; 394 ZoneList<LEnvironment*> deoptimizations_;
389 ZoneList<JumpTableEntry> jump_table_; 395 ZoneList<JumpTableEntry> jump_table_;
390 ZoneList<Handle<Object> > deoptimization_literals_; 396 ZoneList<Handle<Object> > deoptimization_literals_;
391 int inlined_function_count_; 397 int inlined_function_count_;
392 Scope* const scope_; 398 Scope* const scope_;
393 Status status_; 399 Status status_;
394 TranslationBuffer translations_; 400 TranslationBuffer translations_;
395 ZoneList<LDeferredCode*> deferred_; 401 ZoneList<LDeferredCode*> deferred_;
396 bool dynamic_frame_alignment_; 402 bool dynamic_frame_alignment_;
403 bool support_aligned_spilled_doubles_;
397 int osr_pc_offset_; 404 int osr_pc_offset_;
398 int last_lazy_deopt_pc_; 405 int last_lazy_deopt_pc_;
399 bool frame_is_built_; 406 bool frame_is_built_;
400 407
401 // Builder that keeps track of safepoints in the code. The table 408 // Builder that keeps track of safepoints in the code. The table
402 // itself is emitted at the end of the generated code. 409 // itself is emitted at the end of the generated code.
403 SafepointTableBuilder safepoints_; 410 SafepointTableBuilder safepoints_;
404 411
405 // Compiler from a set of parallel moves to a sequential list of moves. 412 // Compiler from a set of parallel moves to a sequential list of moves.
406 LGapResolver resolver_; 413 LGapResolver resolver_;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 LCodeGen* codegen_; 467 LCodeGen* codegen_;
461 Label entry_; 468 Label entry_;
462 Label exit_; 469 Label exit_;
463 Label* external_exit_; 470 Label* external_exit_;
464 int instruction_index_; 471 int instruction_index_;
465 }; 472 };
466 473
467 } } // namespace v8::internal 474 } } // namespace v8::internal
468 475
469 #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