| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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/globals.h" // Needed here to get TARGET_ARCH_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 7 | 7 |
| 8 #include "vm/code_generator.h" | 8 #include "vm/code_generator.h" |
| 9 | 9 |
| 10 #include "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 } | 902 } |
| 903 if (IsResultNeeded(node)) { | 903 if (IsResultNeeded(node)) { |
| 904 __ pushl(EAX); | 904 __ pushl(EAX); |
| 905 } | 905 } |
| 906 } | 906 } |
| 907 | 907 |
| 908 | 908 |
| 909 void CodeGenerator::VisitPrimaryNode(PrimaryNode* node) { | 909 void CodeGenerator::VisitPrimaryNode(PrimaryNode* node) { |
| 910 // PrimaryNodes are temporary during parsing. | 910 // PrimaryNodes are temporary during parsing. |
| 911 ErrorMsg(node->token_index(), | 911 ErrorMsg(node->token_index(), |
| 912 "Unexpected primary node: %s", node->primary().ToCString()); | 912 "Unresolved identifier '%s'", node->primary().ToCString()); |
| 913 } | 913 } |
| 914 | 914 |
| 915 | 915 |
| 916 void CodeGenerator::VisitCloneContextNode(CloneContextNode *node) { | 916 void CodeGenerator::VisitCloneContextNode(CloneContextNode *node) { |
| 917 const Context& result = Context::ZoneHandle(); | 917 const Context& result = Context::ZoneHandle(); |
| 918 __ PushObject(result); | 918 __ PushObject(result); |
| 919 __ pushl(CTX); | 919 __ pushl(CTX); |
| 920 GenerateCallRuntime(node->id(), | 920 GenerateCallRuntime(node->id(), |
| 921 node->token_index(), kCloneContextRuntimeEntry); | 921 node->token_index(), kCloneContextRuntimeEntry); |
| 922 __ popl(EAX); | 922 __ popl(EAX); |
| (...skipping 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2798 const Error& error = Error::Handle( | 2798 const Error& error = Error::Handle( |
| 2799 Parser::FormatError(script, token_index, "Error", format, args)); | 2799 Parser::FormatError(script, token_index, "Error", format, args)); |
| 2800 va_end(args); | 2800 va_end(args); |
| 2801 Isolate::Current()->long_jump_base()->Jump(1, error); | 2801 Isolate::Current()->long_jump_base()->Jump(1, error); |
| 2802 UNREACHABLE(); | 2802 UNREACHABLE(); |
| 2803 } | 2803 } |
| 2804 | 2804 |
| 2805 } // namespace dart | 2805 } // namespace dart |
| 2806 | 2806 |
| 2807 #endif // defined TARGET_ARCH_IA32 | 2807 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |