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

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

Issue 1175963002: Make writing of frame translation platform independent. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 6 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
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x87/lithium-codegen-x87.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_X87_LITHIUM_CODEGEN_X87_H_ 5 #ifndef V8_X87_LITHIUM_CODEGEN_X87_H_
6 #define V8_X87_LITHIUM_CODEGEN_X87_H_ 6 #define V8_X87_LITHIUM_CODEGEN_X87_H_
7 7
8 #include <map> 8 #include <map>
9 #include "src/x87/lithium-x87.h" 9 #include "src/x87/lithium-x87.h"
10 10
(...skipping 12 matching lines...) Expand all
23 class LDeferredCode; 23 class LDeferredCode;
24 class LGapNode; 24 class LGapNode;
25 class SafepointGenerator; 25 class SafepointGenerator;
26 26
27 class LCodeGen: public LCodeGenBase { 27 class LCodeGen: public LCodeGenBase {
28 public: 28 public:
29 LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info) 29 LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info)
30 : LCodeGenBase(chunk, assembler, info), 30 : LCodeGenBase(chunk, assembler, info),
31 deoptimizations_(4, info->zone()), 31 deoptimizations_(4, info->zone()),
32 jump_table_(4, info->zone()), 32 jump_table_(4, info->zone()),
33 deoptimization_literals_(8, info->zone()),
34 inlined_function_count_(0), 33 inlined_function_count_(0),
35 scope_(info->scope()), 34 scope_(info->scope()),
36 translations_(info->zone()), 35 translations_(info->zone()),
37 deferred_(8, info->zone()), 36 deferred_(8, info->zone()),
38 dynamic_frame_alignment_(false), 37 dynamic_frame_alignment_(false),
39 support_aligned_spilled_doubles_(false), 38 support_aligned_spilled_doubles_(false),
40 osr_pc_offset_(-1), 39 osr_pc_offset_(-1),
41 frame_is_built_(false), 40 frame_is_built_(false),
42 x87_stack_(assembler), 41 x87_stack_(assembler),
43 safepoints_(info->zone()), 42 safepoints_(info->zone()),
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 } 240 }
242 241
243 void AddToTranslation(LEnvironment* environment, 242 void AddToTranslation(LEnvironment* environment,
244 Translation* translation, 243 Translation* translation,
245 LOperand* op, 244 LOperand* op,
246 bool is_tagged, 245 bool is_tagged,
247 bool is_uint32, 246 bool is_uint32,
248 int* object_index_pointer, 247 int* object_index_pointer,
249 int* dematerialized_index_pointer); 248 int* dematerialized_index_pointer);
250 void PopulateDeoptimizationData(Handle<Code> code); 249 void PopulateDeoptimizationData(Handle<Code> code);
251 int DefineDeoptimizationLiteral(Handle<Object> literal);
252 250
253 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); 251 void PopulateDeoptimizationLiteralsWithInlinedFunctions();
254 252
255 Register ToRegister(int index) const; 253 Register ToRegister(int index) const;
256 X87Register ToX87Register(int index) const; 254 X87Register ToX87Register(int index) const;
257 int32_t ToRepresentation(LConstantOperand* op, const Representation& r) const; 255 int32_t ToRepresentation(LConstantOperand* op, const Representation& r) const;
258 int32_t ToInteger32(LConstantOperand* op) const; 256 int32_t ToInteger32(LConstantOperand* op) const;
259 ExternalReference ToExternalReference(LConstantOperand* op) const; 257 ExternalReference ToExternalReference(LConstantOperand* op) const;
260 258
261 Operand BuildFastArrayOperand(LOperand* elements_pointer, 259 Operand BuildFastArrayOperand(LOperand* elements_pointer,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 #ifdef _MSC_VER 354 #ifdef _MSC_VER
357 // On windows, you may not access the stack more than one page below 355 // On windows, you may not access the stack more than one page below
358 // the most recently mapped page. To make the allocated area randomly 356 // the most recently mapped page. To make the allocated area randomly
359 // accessible, we write an arbitrary value to each page in range 357 // accessible, we write an arbitrary value to each page in range
360 // esp + offset - page_size .. esp in turn. 358 // esp + offset - page_size .. esp in turn.
361 void MakeSureStackPagesMapped(int offset); 359 void MakeSureStackPagesMapped(int offset);
362 #endif 360 #endif
363 361
364 ZoneList<LEnvironment*> deoptimizations_; 362 ZoneList<LEnvironment*> deoptimizations_;
365 ZoneList<Deoptimizer::JumpTableEntry> jump_table_; 363 ZoneList<Deoptimizer::JumpTableEntry> jump_table_;
366 ZoneList<Handle<Object> > deoptimization_literals_;
367 int inlined_function_count_; 364 int inlined_function_count_;
368 Scope* const scope_; 365 Scope* const scope_;
369 TranslationBuffer translations_; 366 TranslationBuffer translations_;
370 ZoneList<LDeferredCode*> deferred_; 367 ZoneList<LDeferredCode*> deferred_;
371 bool dynamic_frame_alignment_; 368 bool dynamic_frame_alignment_;
372 bool support_aligned_spilled_doubles_; 369 bool support_aligned_spilled_doubles_;
373 int osr_pc_offset_; 370 int osr_pc_offset_;
374 bool frame_is_built_; 371 bool frame_is_built_;
375 372
376 class X87Stack : public ZoneObject { 373 class X87Stack : public ZoneObject {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 Label exit_; 501 Label exit_;
505 Label* external_exit_; 502 Label* external_exit_;
506 Label done_; 503 Label done_;
507 int instruction_index_; 504 int instruction_index_;
508 LCodeGen::X87Stack x87_stack_; 505 LCodeGen::X87Stack x87_stack_;
509 }; 506 };
510 507
511 } } // namespace v8::internal 508 } } // namespace v8::internal
512 509
513 #endif // V8_X87_LITHIUM_CODEGEN_X87_H_ 510 #endif // V8_X87_LITHIUM_CODEGEN_X87_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698