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/hydrogen.h

Issue 16542003: Enable map dependency to in-flight compilation info. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: put transition maps and initial maps dependency into a separate CL Created 7 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 | 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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 virtual ~HGraphBuilder() {} 961 virtual ~HGraphBuilder() {}
962 962
963 HBasicBlock* current_block() const { return current_block_; } 963 HBasicBlock* current_block() const { return current_block_; }
964 void set_current_block(HBasicBlock* block) { current_block_ = block; } 964 void set_current_block(HBasicBlock* block) { current_block_ = block; }
965 HEnvironment* environment() const { 965 HEnvironment* environment() const {
966 return current_block()->last_environment(); 966 return current_block()->last_environment();
967 } 967 }
968 Zone* zone() const { return info_->zone(); } 968 Zone* zone() const { return info_->zone(); }
969 HGraph* graph() const { return graph_; } 969 HGraph* graph() const { return graph_; }
970 Isolate* isolate() const { return graph_->isolate(); } 970 Isolate* isolate() const { return graph_->isolate(); }
971 CompilationInfo* top_info() { return info_; }
971 972
972 HGraph* CreateGraph(); 973 HGraph* CreateGraph();
973 974
974 // Bailout environment manipulation. 975 // Bailout environment manipulation.
975 void Push(HValue* value) { environment()->Push(value); } 976 void Push(HValue* value) { environment()->Push(value); }
976 HValue* Pop() { return environment()->Pop(); } 977 HValue* Pop() { return environment()->Pop(); }
977 978
978 // Adding instructions. 979 // Adding instructions.
979 HInstruction* AddInstruction(HInstruction* instr); 980 HInstruction* AddInstruction(HInstruction* instr);
980 void AddSimulate(BailoutId id, 981 void AddSimulate(BailoutId id,
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 static const int kMaxFastLiteralDepth = 3; 1483 static const int kMaxFastLiteralDepth = 3;
1483 static const int kMaxFastLiteralProperties = 8; 1484 static const int kMaxFastLiteralProperties = 8;
1484 1485
1485 // Simple accessors. 1486 // Simple accessors.
1486 void set_function_state(FunctionState* state) { function_state_ = state; } 1487 void set_function_state(FunctionState* state) { function_state_ = state; }
1487 1488
1488 AstContext* ast_context() const { return ast_context_; } 1489 AstContext* ast_context() const { return ast_context_; }
1489 void set_ast_context(AstContext* context) { ast_context_ = context; } 1490 void set_ast_context(AstContext* context) { ast_context_ = context; }
1490 1491
1491 // Accessors forwarded to the function state. 1492 // Accessors forwarded to the function state.
1492 CompilationInfo* info() const { 1493 CompilationInfo* current_info() const {
1493 return function_state()->compilation_info(); 1494 return function_state()->compilation_info();
1494 } 1495 }
1495 AstContext* call_context() const { 1496 AstContext* call_context() const {
1496 return function_state()->call_context(); 1497 return function_state()->call_context();
1497 } 1498 }
1498 HBasicBlock* function_return() const { 1499 HBasicBlock* function_return() const {
1499 return function_state()->function_return(); 1500 return function_state()->function_return();
1500 } 1501 }
1501 TestContext* inlined_test_context() const { 1502 TestContext* inlined_test_context() const {
1502 return function_state()->test_context(); 1503 return function_state()->test_context();
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
2021 EmbeddedVector<char, 64> filename_; 2022 EmbeddedVector<char, 64> filename_;
2022 HeapStringAllocator string_allocator_; 2023 HeapStringAllocator string_allocator_;
2023 StringStream trace_; 2024 StringStream trace_;
2024 int indent_; 2025 int indent_;
2025 }; 2026 };
2026 2027
2027 2028
2028 } } // namespace v8::internal 2029 } } // namespace v8::internal
2029 2030
2030 #endif // V8_HYDROGEN_H_ 2031 #endif // V8_HYDROGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698