Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: runtime/vm/code_generator_x64.cc

Issue 9453020: Fix handling of unresolved names (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/code_generator_ia32.cc ('k') | runtime/vm/parser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 __ popq(RCX); // Pop receiver. 912 __ popq(RCX); // Pop receiver.
913 } 913 }
914 if (IsResultNeeded(node)) { 914 if (IsResultNeeded(node)) {
915 __ pushq(RAX); 915 __ pushq(RAX);
916 } 916 }
917 } 917 }
918 918
919 919
920 void CodeGenerator::VisitPrimaryNode(PrimaryNode* node) { 920 void CodeGenerator::VisitPrimaryNode(PrimaryNode* node) {
921 // PrimaryNodes are temporary during parsing. 921 // PrimaryNodes are temporary during parsing.
922 ErrorMsg(node->token_index(), 922 UNREACHABLE();
923 "Unresolved identifier '%s'", node->primary().ToCString());
924 } 923 }
925 924
926 925
927 void CodeGenerator::VisitCloneContextNode(CloneContextNode *node) { 926 void CodeGenerator::VisitCloneContextNode(CloneContextNode *node) {
928 const Context& result = Context::ZoneHandle(); 927 const Context& result = Context::ZoneHandle();
929 __ PushObject(result); 928 __ PushObject(result);
930 __ pushq(CTX); 929 __ pushq(CTX);
931 GenerateCallRuntime(node->id(), 930 GenerateCallRuntime(node->id(),
932 node->token_index(), kCloneContextRuntimeEntry); 931 node->token_index(), kCloneContextRuntimeEntry);
933 __ popq(RAX); 932 __ popq(RAX);
(...skipping 1880 matching lines...) Expand 10 before | Expand all | Expand 10 after
2814 const Error& error = Error::Handle( 2813 const Error& error = Error::Handle(
2815 Parser::FormatError(script, token_index, "Error", format, args)); 2814 Parser::FormatError(script, token_index, "Error", format, args));
2816 va_end(args); 2815 va_end(args);
2817 Isolate::Current()->long_jump_base()->Jump(1, error); 2816 Isolate::Current()->long_jump_base()->Jump(1, error);
2818 UNREACHABLE(); 2817 UNREACHABLE();
2819 } 2818 }
2820 2819
2821 } // namespace dart 2820 } // namespace dart
2822 2821
2823 #endif // defined TARGET_ARCH_X64 2822 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/code_generator_ia32.cc ('k') | runtime/vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698