| OLD | NEW | 
|      1 // Copyright 2013 the V8 project authors. All rights reserved. |      1 // Copyright 2013 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 #include "src/crankshaft/hydrogen.h" |      5 #include "src/crankshaft/hydrogen.h" | 
|      6  |      6  | 
|      7 #include <sstream> |      7 #include <sstream> | 
|      8  |      8  | 
|      9 #include "src/allocation-site-scopes.h" |      9 #include "src/allocation-site-scopes.h" | 
|     10 #include "src/ast/ast-numbering.h" |     10 #include "src/ast/ast-numbering.h" | 
| (...skipping 12248 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  12259  |  12259  | 
|  12260  |  12260  | 
|  12261 void HOptimizedGraphBuilder::VisitDeclarations( |  12261 void HOptimizedGraphBuilder::VisitDeclarations( | 
|  12262     ZoneList<Declaration*>* declarations) { |  12262     ZoneList<Declaration*>* declarations) { | 
|  12263   DCHECK(globals_.is_empty()); |  12263   DCHECK(globals_.is_empty()); | 
|  12264   AstVisitor::VisitDeclarations(declarations); |  12264   AstVisitor::VisitDeclarations(declarations); | 
|  12265   if (!globals_.is_empty()) { |  12265   if (!globals_.is_empty()) { | 
|  12266     Handle<FixedArray> array = |  12266     Handle<FixedArray> array = | 
|  12267        isolate()->factory()->NewFixedArray(globals_.length(), TENURED); |  12267        isolate()->factory()->NewFixedArray(globals_.length(), TENURED); | 
|  12268     for (int i = 0; i < globals_.length(); ++i) array->set(i, *globals_.at(i)); |  12268     for (int i = 0; i < globals_.length(); ++i) array->set(i, *globals_.at(i)); | 
|  12269     int flags = |  12269     int flags = DeclareGlobalsEvalFlag::encode(current_info()->is_eval()) | | 
|  12270         DeclareGlobalsEvalFlag::encode(current_info()->is_eval()) | |  12270                 DeclareGlobalsNativeFlag::encode(current_info()->is_native()) | | 
|  12271         DeclareGlobalsNativeFlag::encode(current_info()->is_native()) | |  12271                 DeclareGlobalsLanguageMode::encode(function_language_mode()); | 
|  12272         DeclareGlobalsLanguageMode::encode(current_info()->language_mode()); |  | 
|  12273     Add<HDeclareGlobals>(array, flags); |  12272     Add<HDeclareGlobals>(array, flags); | 
|  12274     globals_.Rewind(0); |  12273     globals_.Rewind(0); | 
|  12275   } |  12274   } | 
|  12276 } |  12275 } | 
|  12277  |  12276  | 
|  12278  |  12277  | 
|  12279 void HOptimizedGraphBuilder::VisitVariableDeclaration( |  12278 void HOptimizedGraphBuilder::VisitVariableDeclaration( | 
|  12280     VariableDeclaration* declaration) { |  12279     VariableDeclaration* declaration) { | 
|  12281   VariableProxy* proxy = declaration->proxy(); |  12280   VariableProxy* proxy = declaration->proxy(); | 
|  12282   VariableMode mode = declaration->mode(); |  12281   VariableMode mode = declaration->mode(); | 
| (...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  13724     isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |  13723     isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 
|  13725   } |  13724   } | 
|  13726  |  13725  | 
|  13727 #ifdef DEBUG |  13726 #ifdef DEBUG | 
|  13728   graph_->Verify(false);  // No full verify. |  13727   graph_->Verify(false);  // No full verify. | 
|  13729 #endif |  13728 #endif | 
|  13730 } |  13729 } | 
|  13731  |  13730  | 
|  13732 }  // namespace internal |  13731 }  // namespace internal | 
|  13733 }  // namespace v8 |  13732 }  // namespace v8 | 
| OLD | NEW |