| 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/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 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 915 __ popl(ECX); // Pop receiver. | 915 __ popl(ECX); // Pop receiver. |
| 916 } | 916 } |
| 917 if (IsResultNeeded(node)) { | 917 if (IsResultNeeded(node)) { |
| 918 __ pushl(EAX); | 918 __ pushl(EAX); |
| 919 } | 919 } |
| 920 } | 920 } |
| 921 | 921 |
| 922 | 922 |
| 923 void CodeGenerator::VisitPrimaryNode(PrimaryNode* node) { | 923 void CodeGenerator::VisitPrimaryNode(PrimaryNode* node) { |
| 924 // PrimaryNodes are temporary during parsing. | 924 // PrimaryNodes are temporary during parsing. |
| 925 ErrorMsg(node->token_index(), | 925 UNREACHABLE(); |
| 926 "Unresolved identifier '%s'", node->primary().ToCString()); | |
| 927 } | 926 } |
| 928 | 927 |
| 929 | 928 |
| 930 void CodeGenerator::VisitCloneContextNode(CloneContextNode *node) { | 929 void CodeGenerator::VisitCloneContextNode(CloneContextNode *node) { |
| 931 const Context& result = Context::ZoneHandle(); | 930 const Context& result = Context::ZoneHandle(); |
| 932 __ PushObject(result); | 931 __ PushObject(result); |
| 933 __ pushl(CTX); | 932 __ pushl(CTX); |
| 934 GenerateCallRuntime(node->id(), | 933 GenerateCallRuntime(node->id(), |
| 935 node->token_index(), kCloneContextRuntimeEntry); | 934 node->token_index(), kCloneContextRuntimeEntry); |
| 936 __ popl(EAX); | 935 __ popl(EAX); |
| (...skipping 1878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2815 const Error& error = Error::Handle( | 2814 const Error& error = Error::Handle( |
| 2816 Parser::FormatError(script, token_index, "Error", format, args)); | 2815 Parser::FormatError(script, token_index, "Error", format, args)); |
| 2817 va_end(args); | 2816 va_end(args); |
| 2818 Isolate::Current()->long_jump_base()->Jump(1, error); | 2817 Isolate::Current()->long_jump_base()->Jump(1, error); |
| 2819 UNREACHABLE(); | 2818 UNREACHABLE(); |
| 2820 } | 2819 } |
| 2821 | 2820 |
| 2822 } // namespace dart | 2821 } // namespace dart |
| 2823 | 2822 |
| 2824 #endif // defined TARGET_ARCH_IA32 | 2823 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |