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

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

Issue 7976024: Add dynamic stack frame alignment to optimized functions with untagged doubles on the stack. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporate code review comments. Created 9 years, 3 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-codegen-ia32.cc ('k') | src/ia32/lithium-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 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 2055 matching lines...) Expand 10 before | Expand all | Expand 10 after
2066 2066
2067 class LChunkBuilder; 2067 class LChunkBuilder;
2068 class LChunk: public ZoneObject { 2068 class LChunk: public ZoneObject {
2069 public: 2069 public:
2070 LChunk(CompilationInfo* info, HGraph* graph) 2070 LChunk(CompilationInfo* info, HGraph* graph)
2071 : spill_slot_count_(0), 2071 : spill_slot_count_(0),
2072 info_(info), 2072 info_(info),
2073 graph_(graph), 2073 graph_(graph),
2074 instructions_(32), 2074 instructions_(32),
2075 pointer_maps_(8), 2075 pointer_maps_(8),
2076 num_double_slots_(0),
2076 inlined_closures_(1) { } 2077 inlined_closures_(1) { }
2077 2078
2078 void AddInstruction(LInstruction* instruction, HBasicBlock* block); 2079 void AddInstruction(LInstruction* instruction, HBasicBlock* block);
2079 LConstantOperand* DefineConstantOperand(HConstant* constant); 2080 LConstantOperand* DefineConstantOperand(HConstant* constant);
2080 Handle<Object> LookupLiteral(LConstantOperand* operand) const; 2081 Handle<Object> LookupLiteral(LConstantOperand* operand) const;
2081 Representation LookupLiteralRepresentation(LConstantOperand* operand) const; 2082 Representation LookupLiteralRepresentation(LConstantOperand* operand) const;
2082 2083
2083 int GetNextSpillIndex(bool is_double); 2084 int GetNextSpillIndex(bool is_double);
2084 LOperand* GetNextSpillSlot(bool is_double); 2085 LOperand* GetNextSpillSlot(bool is_double);
2085 2086
2086 int ParameterAt(int index); 2087 int ParameterAt(int index);
2087 int GetParameterStackSlot(int index) const; 2088 int GetParameterStackSlot(int index) const;
2088 int spill_slot_count() const { return spill_slot_count_; } 2089 int spill_slot_count() const { return spill_slot_count_; }
2090 int num_double_slots() const { return num_double_slots_; }
2091
2089 CompilationInfo* info() const { return info_; } 2092 CompilationInfo* info() const { return info_; }
2090 HGraph* graph() const { return graph_; } 2093 HGraph* graph() const { return graph_; }
2091 const ZoneList<LInstruction*>* instructions() const { return &instructions_; } 2094 const ZoneList<LInstruction*>* instructions() const { return &instructions_; }
2092 void AddGapMove(int index, LOperand* from, LOperand* to); 2095 void AddGapMove(int index, LOperand* from, LOperand* to);
2093 LGap* GetGapAt(int index) const; 2096 LGap* GetGapAt(int index) const;
2094 bool IsGapAt(int index) const; 2097 bool IsGapAt(int index) const;
2095 int NearestGapPos(int index) const; 2098 int NearestGapPos(int index) const;
2096 void MarkEmptyBlocks(); 2099 void MarkEmptyBlocks();
2097 const ZoneList<LPointerMap*>* pointer_maps() const { return &pointer_maps_; } 2100 const ZoneList<LPointerMap*>* pointer_maps() const { return &pointer_maps_; }
2098 LLabel* GetLabel(int block_id) const { 2101 LLabel* GetLabel(int block_id) const {
(...skipping 21 matching lines...) Expand all
2120 void AddInlinedClosure(Handle<JSFunction> closure) { 2123 void AddInlinedClosure(Handle<JSFunction> closure) {
2121 inlined_closures_.Add(closure); 2124 inlined_closures_.Add(closure);
2122 } 2125 }
2123 2126
2124 private: 2127 private:
2125 int spill_slot_count_; 2128 int spill_slot_count_;
2126 CompilationInfo* info_; 2129 CompilationInfo* info_;
2127 HGraph* const graph_; 2130 HGraph* const graph_;
2128 ZoneList<LInstruction*> instructions_; 2131 ZoneList<LInstruction*> instructions_;
2129 ZoneList<LPointerMap*> pointer_maps_; 2132 ZoneList<LPointerMap*> pointer_maps_;
2133 int num_double_slots_;
2130 ZoneList<Handle<JSFunction> > inlined_closures_; 2134 ZoneList<Handle<JSFunction> > inlined_closures_;
2131 }; 2135 };
2132 2136
2133 2137
2134 class LChunkBuilder BASE_EMBEDDED { 2138 class LChunkBuilder BASE_EMBEDDED {
2135 public: 2139 public:
2136 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator) 2140 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator)
2137 : chunk_(NULL), 2141 : chunk_(NULL),
2138 info_(info), 2142 info_(info),
2139 graph_(graph), 2143 graph_(graph),
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
2290 2294
2291 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2295 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2292 }; 2296 };
2293 2297
2294 #undef DECLARE_HYDROGEN_ACCESSOR 2298 #undef DECLARE_HYDROGEN_ACCESSOR
2295 #undef DECLARE_CONCRETE_INSTRUCTION 2299 #undef DECLARE_CONCRETE_INSTRUCTION
2296 2300
2297 } } // namespace v8::internal 2301 } } // namespace v8::internal
2298 2302
2299 #endif // V8_IA32_LITHIUM_IA32_H_ 2303 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698