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

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

Issue 142813003: A64: Synchronize with r15358. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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/x64/ic-x64.cc ('k') | src/x64/lithium-codegen-x64.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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 73
74 // Simple accessors. 74 // Simple accessors.
75 MacroAssembler* masm() const { return masm_; } 75 MacroAssembler* masm() const { return masm_; }
76 CompilationInfo* info() const { return info_; } 76 CompilationInfo* info() const { return info_; }
77 Isolate* isolate() const { return info_->isolate(); } 77 Isolate* isolate() const { return info_->isolate(); }
78 Factory* factory() const { return isolate()->factory(); } 78 Factory* factory() const { return isolate()->factory(); }
79 Heap* heap() const { return isolate()->heap(); } 79 Heap* heap() const { return isolate()->heap(); }
80 Zone* zone() const { return zone_; } 80 Zone* zone() const { return zone_; }
81 81
82 // TODO(svenpanne) Use this consistently.
83 int LookupDestination(int block_id) const { 82 int LookupDestination(int block_id) const {
84 return chunk()->LookupDestination(block_id); 83 return chunk()->LookupDestination(block_id);
85 } 84 }
86 85
87 bool IsNextEmittedBlock(int block_id) const { 86 bool IsNextEmittedBlock(int block_id) const {
88 return LookupDestination(block_id) == GetNextEmittedBlock(); 87 return LookupDestination(block_id) == GetNextEmittedBlock();
89 } 88 }
90 89
91 bool NeedsEagerFrame() const { 90 bool NeedsEagerFrame() const {
92 return GetStackSlotCount() > 0 || 91 return GetStackSlotCount() > 0 ||
(...skipping 28 matching lines...) Expand all
121 120
122 // Deferred code support. 121 // Deferred code support.
123 void DoDeferredNumberTagD(LNumberTagD* instr); 122 void DoDeferredNumberTagD(LNumberTagD* instr);
124 void DoDeferredNumberTagU(LNumberTagU* instr); 123 void DoDeferredNumberTagU(LNumberTagU* instr);
125 void DoDeferredTaggedToI(LTaggedToI* instr); 124 void DoDeferredTaggedToI(LTaggedToI* instr);
126 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); 125 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr);
127 void DoDeferredStackCheck(LStackCheck* instr); 126 void DoDeferredStackCheck(LStackCheck* instr);
128 void DoDeferredRandom(LRandom* instr); 127 void DoDeferredRandom(LRandom* instr);
129 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); 128 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr);
130 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); 129 void DoDeferredStringCharFromCode(LStringCharFromCode* instr);
130 void DoDeferredAllocateObject(LAllocateObject* instr);
131 void DoDeferredAllocate(LAllocate* instr); 131 void DoDeferredAllocate(LAllocate* instr);
132 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, 132 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr,
133 Label* map_check); 133 Label* map_check);
134 134
135 void DoCheckMapCommon(Register reg, Handle<Map> map, LInstruction* instr); 135 void DoCheckMapCommon(Register reg, Handle<Map> map, LInstruction* instr);
136 136
137 // Parallel move support. 137 // Parallel move support.
138 void DoParallelMove(LParallelMove* move); 138 void DoParallelMove(LParallelMove* move);
139 void DoGap(LGap* instr); 139 void DoGap(LGap* instr);
140 140
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 Safepoint::DeoptMode mode); 275 Safepoint::DeoptMode mode);
276 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); 276 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode);
277 void RecordSafepoint(Safepoint::DeoptMode mode); 277 void RecordSafepoint(Safepoint::DeoptMode mode);
278 void RecordSafepointWithRegisters(LPointerMap* pointers, 278 void RecordSafepointWithRegisters(LPointerMap* pointers,
279 int arguments, 279 int arguments,
280 Safepoint::DeoptMode mode); 280 Safepoint::DeoptMode mode);
281 void RecordPosition(int position); 281 void RecordPosition(int position);
282 282
283 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 283 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
284 void EmitGoto(int block); 284 void EmitGoto(int block);
285 void EmitBranch(int left_block, int right_block, Condition cc); 285 template<class InstrType>
286 void EmitBranch(InstrType instr, Condition cc);
286 void EmitNumberUntagD( 287 void EmitNumberUntagD(
287 Register input, 288 Register input,
288 XMMRegister result, 289 XMMRegister result,
289 bool allow_undefined_as_nan, 290 bool allow_undefined_as_nan,
290 bool deoptimize_on_minus_zero, 291 bool deoptimize_on_minus_zero,
291 LEnvironment* env, 292 LEnvironment* env,
292 NumberUntagDMode mode = NUMBER_CANDIDATE_IS_ANY_TAGGED); 293 NumberUntagDMode mode = NUMBER_CANDIDATE_IS_ANY_TAGGED);
293 294
294 // Emits optimized code for typeof x == "y". Modifies input register. 295 // Emits optimized code for typeof x == "y". Modifies input register.
295 // Returns the condition on which a final split to 296 // Returns the condition on which a final split to
296 // true and false label should be made, to optimize fallthrough. 297 // true and false label should be made, to optimize fallthrough.
297 Condition EmitTypeofIs(Label* true_label, 298 Condition EmitTypeofIs(Label* true_label,
298 Label* false_label, 299 Label* false_label,
299 Register input, 300 Register input,
300 Handle<String> type_name); 301 Handle<String> type_name);
301 302
302 // Emits optimized code for %_IsObject(x). Preserves input register. 303 // Emits optimized code for %_IsObject(x). Preserves input register.
303 // Returns the condition on which a final split to 304 // Returns the condition on which a final split to
304 // true and false label should be made, to optimize fallthrough. 305 // true and false label should be made, to optimize fallthrough.
305 Condition EmitIsObject(Register input, 306 Condition EmitIsObject(Register input,
306 Label* is_not_object, 307 Label* is_not_object,
307 Label* is_object); 308 Label* is_object);
308 309
309 // Emits optimized code for %_IsString(x). Preserves input register. 310 // Emits optimized code for %_IsString(x). Preserves input register.
310 // Returns the condition on which a final split to 311 // Returns the condition on which a final split to
311 // true and false label should be made, to optimize fallthrough. 312 // true and false label should be made, to optimize fallthrough.
312 Condition EmitIsString(Register input, 313 Condition EmitIsString(Register input,
313 Register temp1, 314 Register temp1,
314 Label* is_not_string); 315 Label* is_not_string,
316 SmiCheck check_needed);
315 317
316 // Emits optimized code for %_IsConstructCall(). 318 // Emits optimized code for %_IsConstructCall().
317 // Caller should branch on equal condition. 319 // Caller should branch on equal condition.
318 void EmitIsConstructCall(Register temp); 320 void EmitIsConstructCall(Register temp);
319 321
320 void EmitLoadFieldOrConstantFunction(Register result, 322 void EmitLoadFieldOrConstantFunction(Register result,
321 Register object, 323 Register object,
322 Handle<Map> type, 324 Handle<Map> type,
323 Handle<String> name, 325 Handle<String> name,
324 LEnvironment* env); 326 LEnvironment* env);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 LCodeGen* codegen_; 427 LCodeGen* codegen_;
426 Label entry_; 428 Label entry_;
427 Label exit_; 429 Label exit_;
428 Label* external_exit_; 430 Label* external_exit_;
429 int instruction_index_; 431 int instruction_index_;
430 }; 432 };
431 433
432 } } // namespace v8::internal 434 } } // namespace v8::internal
433 435
434 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 436 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/x64/ic-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698