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

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

Issue 10544196: Defer creating Handles for HConstants to the code generation phase. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review. Created 8 years, 5 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
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 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after
2183 LChunk(CompilationInfo* info, HGraph* graph) 2183 LChunk(CompilationInfo* info, HGraph* graph)
2184 : spill_slot_count_(0), 2184 : spill_slot_count_(0),
2185 info_(info), 2185 info_(info),
2186 graph_(graph), 2186 graph_(graph),
2187 instructions_(32, graph->zone()), 2187 instructions_(32, graph->zone()),
2188 pointer_maps_(8, graph->zone()), 2188 pointer_maps_(8, graph->zone()),
2189 inlined_closures_(1, graph->zone()) { } 2189 inlined_closures_(1, graph->zone()) { }
2190 2190
2191 void AddInstruction(LInstruction* instruction, HBasicBlock* block); 2191 void AddInstruction(LInstruction* instruction, HBasicBlock* block);
2192 LConstantOperand* DefineConstantOperand(HConstant* constant); 2192 LConstantOperand* DefineConstantOperand(HConstant* constant);
2193 Handle<Object> LookupLiteral(LConstantOperand* operand) const; 2193 HConstant* LookupConstant(LConstantOperand* operand) const;
2194 Representation LookupLiteralRepresentation(LConstantOperand* operand) const; 2194 Representation LookupLiteralRepresentation(LConstantOperand* operand) const;
2195 2195
2196 int GetNextSpillIndex(bool is_double); 2196 int GetNextSpillIndex(bool is_double);
2197 LOperand* GetNextSpillSlot(bool is_double); 2197 LOperand* GetNextSpillSlot(bool is_double);
2198 2198
2199 int ParameterAt(int index); 2199 int ParameterAt(int index);
2200 int GetParameterStackSlot(int index) const; 2200 int GetParameterStackSlot(int index) const;
2201 int spill_slot_count() const { return spill_slot_count_; } 2201 int spill_slot_count() const { return spill_slot_count_; }
2202 CompilationInfo* info() const { return info_; } 2202 CompilationInfo* info() const { return info_; }
2203 HGraph* graph() const { return graph_; } 2203 HGraph* graph() const { return graph_; }
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
2402 2402
2403 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2403 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2404 }; 2404 };
2405 2405
2406 #undef DECLARE_HYDROGEN_ACCESSOR 2406 #undef DECLARE_HYDROGEN_ACCESSOR
2407 #undef DECLARE_CONCRETE_INSTRUCTION 2407 #undef DECLARE_CONCRETE_INSTRUCTION
2408 2408
2409 } } // namespace v8::int 2409 } } // namespace v8::int
2410 2410
2411 #endif // V8_X64_LITHIUM_X64_H_ 2411 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698