Chromium Code Reviews| 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_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 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 899 } | 899 } |
| 900 | 900 |
| 901 // If this node sequence is labeled, a break out of the sequence will have | 901 // If this node sequence is labeled, a break out of the sequence will have |
| 902 // taken care of unchaining the context. | 902 // taken care of unchaining the context. |
| 903 if (node_sequence->label() != NULL) { | 903 if (node_sequence->label() != NULL) { |
| 904 __ Bind(node_sequence->label()->break_label()); | 904 __ Bind(node_sequence->label()->break_label()); |
| 905 | 905 |
| 906 // The context saved on entry must be restored. | 906 // The context saved on entry must be restored. |
| 907 if ((node_sequence == parsed_function_.node_sequence()) && | 907 if ((node_sequence == parsed_function_.node_sequence()) && |
| 908 (parsed_function_.saved_context_var() != NULL)) { | 908 (parsed_function_.saved_context_var() != NULL)) { |
| 909 GenerateLoadVariable(CTX, *parsed_function_.saved_context_var()); | 909 // Outermost sequence cannot have a label. |
| 910 UNREACHABLE(); | |
|
regis
2012/04/05 16:03:57
Ditto (if you replaced by assert in 32-bit version
srdjan
2012/04/05 16:23:11
Done.
| |
| 910 } | 911 } |
| 911 } | 912 } |
| 912 set_context_level(previous_context_level); | 913 set_context_level(previous_context_level); |
| 913 } | 914 } |
| 914 | 915 |
| 915 | 916 |
| 916 void CodeGenerator::VisitArgumentListNode(ArgumentListNode* arguments) { | 917 void CodeGenerator::VisitArgumentListNode(ArgumentListNode* arguments) { |
| 917 for (int i = 0; i < arguments->length(); i++) { | 918 for (int i = 0; i < arguments->length(); i++) { |
| 918 AstNode* argument = arguments->NodeAt(i); | 919 AstNode* argument = arguments->NodeAt(i); |
| 919 argument->Visit(this); | 920 argument->Visit(this); |
| (...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2718 const Error& error = Error::Handle( | 2719 const Error& error = Error::Handle( |
| 2719 Parser::FormatError(script, token_index, "Error", format, args)); | 2720 Parser::FormatError(script, token_index, "Error", format, args)); |
| 2720 va_end(args); | 2721 va_end(args); |
| 2721 Isolate::Current()->long_jump_base()->Jump(1, error); | 2722 Isolate::Current()->long_jump_base()->Jump(1, error); |
| 2722 UNREACHABLE(); | 2723 UNREACHABLE(); |
| 2723 } | 2724 } |
| 2724 | 2725 |
| 2725 } // namespace dart | 2726 } // namespace dart |
| 2726 | 2727 |
| 2727 #endif // defined TARGET_ARCH_X64 | 2728 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |