| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/parser.h" | 5 #include "vm/parser.h" |
| 6 #include "vm/flags.h" | 6 #include "vm/flags.h" |
| 7 | 7 |
| 8 #ifndef DART_PRECOMPILED_RUNTIME | 8 #ifndef DART_PRECOMPILED_RUNTIME |
| 9 | 9 |
| 10 #include "lib/invocation_mirror.h" | 10 #include "lib/invocation_mirror.h" |
| (...skipping 6100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6111 toplevel_class.AddFunction(*top_level.functions()[i]); | 6111 toplevel_class.AddFunction(*top_level.functions()[i]); |
| 6112 } | 6112 } |
| 6113 if (toplevel_class.is_finalized()) { | 6113 if (toplevel_class.is_finalized()) { |
| 6114 toplevel_class.ResetFinalization(); | 6114 toplevel_class.ResetFinalization(); |
| 6115 } | 6115 } |
| 6116 pending_classes.Add(toplevel_class, Heap::kOld); | 6116 pending_classes.Add(toplevel_class, Heap::kOld); |
| 6117 } | 6117 } |
| 6118 | 6118 |
| 6119 | 6119 |
| 6120 void Parser::CheckStack() { | 6120 void Parser::CheckStack() { |
| 6121 volatile uword c_stack_pos = Isolate::GetCurrentStackPointer(); | 6121 volatile uword c_stack_pos = Thread::GetCurrentStackPointer(); |
| 6122 volatile uword c_stack_base = OSThread::Current()->stack_base(); | 6122 volatile uword c_stack_base = OSThread::Current()->stack_base(); |
| 6123 volatile uword c_stack_limit = | 6123 volatile uword c_stack_limit = |
| 6124 c_stack_base - OSThread::GetSpecifiedStackSize(); | 6124 c_stack_base - OSThread::GetSpecifiedStackSize(); |
| 6125 // Note: during early initialization the stack_base() can return 0. | 6125 // Note: during early initialization the stack_base() can return 0. |
| 6126 if ((c_stack_base > 0) && (c_stack_pos < c_stack_limit)) { | 6126 if ((c_stack_base > 0) && (c_stack_pos < c_stack_limit)) { |
| 6127 ReportError("stack overflow while parsing"); | 6127 ReportError("stack overflow while parsing"); |
| 6128 } | 6128 } |
| 6129 } | 6129 } |
| 6130 | 6130 |
| 6131 | 6131 |
| (...skipping 8312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14444 const ArgumentListNode& function_args, | 14444 const ArgumentListNode& function_args, |
| 14445 const LocalVariable* temp_for_last_arg, | 14445 const LocalVariable* temp_for_last_arg, |
| 14446 bool is_super_invocation) { | 14446 bool is_super_invocation) { |
| 14447 UNREACHABLE(); | 14447 UNREACHABLE(); |
| 14448 return NULL; | 14448 return NULL; |
| 14449 } | 14449 } |
| 14450 | 14450 |
| 14451 } // namespace dart | 14451 } // namespace dart |
| 14452 | 14452 |
| 14453 #endif // DART_PRECOMPILED_RUNTIME | 14453 #endif // DART_PRECOMPILED_RUNTIME |
| OLD | NEW |