| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|    163   } |    163   } | 
|    164   for (intptr_t j = 0; j < guarded_fields_->length(); j++) { |    164   for (intptr_t j = 0; j < guarded_fields_->length(); j++) { | 
|    165     if ((*guarded_fields_)[j]->raw() == field->raw()) { |    165     if ((*guarded_fields_)[j]->raw() == field->raw()) { | 
|    166       return; |    166       return; | 
|    167     } |    167     } | 
|    168   } |    168   } | 
|    169   guarded_fields_->Add(&Field::ZoneHandle(Z, field->Original())); |    169   guarded_fields_->Add(&Field::ZoneHandle(Z, field->Original())); | 
|    170 } |    170 } | 
|    171  |    171  | 
|    172  |    172  | 
 |    173 void ParsedFunction::Bailout(const char* origin, const char* reason) const { | 
 |    174   Report::MessageF(Report::kBailout, | 
 |    175                    Script::Handle(function_.script()), | 
 |    176                    function_.token_pos(), | 
 |    177                    Report::AtLocation, | 
 |    178                    "%s Bailout in %s: %s", | 
 |    179                    origin, | 
 |    180                    String::Handle(function_.name()).ToCString(), | 
 |    181                    reason); | 
 |    182   UNREACHABLE(); | 
 |    183 } | 
 |    184  | 
 |    185  | 
|    173 LocalVariable* ParsedFunction::EnsureExpressionTemp() { |    186 LocalVariable* ParsedFunction::EnsureExpressionTemp() { | 
|    174   if (!has_expression_temp_var()) { |    187   if (!has_expression_temp_var()) { | 
|    175     LocalVariable* temp = |    188     LocalVariable* temp = | 
|    176         new (Z) LocalVariable(function_.token_pos(), |    189         new (Z) LocalVariable(function_.token_pos(), | 
|    177                               Symbols::ExprTemp(), |    190                               Symbols::ExprTemp(), | 
|    178                               Object::dynamic_type()); |    191                               Object::dynamic_type()); | 
|    179     ASSERT(temp != NULL); |    192     ASSERT(temp != NULL); | 
|    180     set_expression_temp_var(temp); |    193     set_expression_temp_var(temp); | 
|    181   } |    194   } | 
|    182   ASSERT(has_expression_temp_var()); |    195   ASSERT(has_expression_temp_var()); | 
| (...skipping 14317 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  14500     const ArgumentListNode& function_args, |  14513     const ArgumentListNode& function_args, | 
|  14501     const LocalVariable* temp_for_last_arg, |  14514     const LocalVariable* temp_for_last_arg, | 
|  14502     bool is_super_invocation) { |  14515     bool is_super_invocation) { | 
|  14503   UNREACHABLE(); |  14516   UNREACHABLE(); | 
|  14504   return NULL; |  14517   return NULL; | 
|  14505 } |  14518 } | 
|  14506  |  14519  | 
|  14507 }  // namespace dart |  14520 }  // namespace dart | 
|  14508  |  14521  | 
|  14509 #endif  // DART_PRECOMPILED_RUNTIME |  14522 #endif  // DART_PRECOMPILED_RUNTIME | 
| OLD | NEW |