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

Side by Side Diff: src/hydrogen.cc

Issue 7236015: Fix renaming patch to also compile in debug mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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
« no previous file with comments | « no previous file | no next file » | 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 instr->AddEnvironmentValue(val); 127 instr->AddEnvironmentValue(val);
128 } 128 }
129 129
130 return instr; 130 return instr;
131 } 131 }
132 132
133 133
134 HSimulate* HBasicBlock::CreateSimulate(int ast_id) { 134 HSimulate* HBasicBlock::CreateSimulate(int ast_id) {
135 ASSERT(HasEnvironment()); 135 ASSERT(HasEnvironment());
136 HEnvironment* environment = last_environment(); 136 HEnvironment* environment = last_environment();
137 ASSERT(id == AstNode::kNoNumber || 137 ASSERT(ast_id == AstNode::kNoNumber ||
138 environment->closure()->shared()->VerifyBailoutId(id)); 138 environment->closure()->shared()->VerifyBailoutId(ast_id));
139 139
140 int push_count = environment->push_count(); 140 int push_count = environment->push_count();
141 int pop_count = environment->pop_count(); 141 int pop_count = environment->pop_count();
142 142
143 HSimulate* instr = new(zone()) HSimulate(ast_id, pop_count); 143 HSimulate* instr = new(zone()) HSimulate(ast_id, pop_count);
144 for (int i = push_count - 1; i >= 0; --i) { 144 for (int i = push_count - 1; i >= 0; --i) {
145 instr->AddPushedValue(environment->ExpressionStackAt(i)); 145 instr->AddPushedValue(environment->ExpressionStackAt(i));
146 } 146 }
147 for (int i = 0; i < environment->assigned_variables()->length(); ++i) { 147 for (int i = 0; i < environment->assigned_variables()->length(); ++i) {
148 int index = environment->assigned_variables()->at(i); 148 int index = environment->assigned_variables()->at(i);
(...skipping 6417 matching lines...) Expand 10 before | Expand all | Expand 10 after
6566 } 6566 }
6567 } 6567 }
6568 6568
6569 #ifdef DEBUG 6569 #ifdef DEBUG
6570 if (graph_ != NULL) graph_->Verify(); 6570 if (graph_ != NULL) graph_->Verify();
6571 if (allocator_ != NULL) allocator_->Verify(); 6571 if (allocator_ != NULL) allocator_->Verify();
6572 #endif 6572 #endif
6573 } 6573 }
6574 6574
6575 } } // namespace v8::internal 6575 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698