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

Side by Side Diff: vm/flow_graph_builder.cc

Issue 11469036: - Create frame work for adding read only handles for symbols in the VM isolate (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years 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 | « vm/dart_entry.cc ('k') | vm/handles.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/flow_graph_builder.h" 5 #include "vm/flow_graph_builder.h"
6 6
7 #include "vm/ast_printer.h" 7 #include "vm/ast_printer.h"
8 #include "vm/code_descriptors.h" 8 #include "vm/code_descriptors.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 1731 matching lines...) Expand 10 before | Expand all | Expand 10 after
1742 const Library& lib = Library::Handle(clazz.library()); 1742 const Library& lib = Library::Handle(clazz.library());
1743 1743
1744 const String& expected_class_name = 1744 const String& expected_class_name =
1745 String::Handle(lib.PrivateName(expected)); 1745 String::Handle(lib.PrivateName(expected));
1746 if (!String::Handle(clazz.Name()).Equals(expected_class_name)) { 1746 if (!String::Handle(clazz.Name()).Equals(expected_class_name)) {
1747 return false; 1747 return false;
1748 } 1748 }
1749 1749
1750 const String& function_name = String::Handle(function.name()); 1750 const String& function_name = String::Handle(function.name());
1751 const String& expected_function_name = String::Handle( 1751 const String& expected_function_name = String::Handle(
1752 String::Concat(expected_class_name, String::Handle(Symbols::Dot()))); 1752 String::Concat(expected_class_name, Symbols::DotHandle()));
1753 return function_name.Equals(expected_function_name); 1753 return function_name.Equals(expected_function_name);
1754 } 1754 }
1755 1755
1756 1756
1757 static intptr_t GetResultCidOfConstructor(ConstructorCallNode* node) { 1757 static intptr_t GetResultCidOfConstructor(ConstructorCallNode* node) {
1758 const Function& function = node->constructor(); 1758 const Function& function = node->constructor();
1759 const Class& function_class = Class::Handle(function.Owner()); 1759 const Class& function_class = Class::Handle(function.Owner());
1760 const Library& core_lib = Library::Handle(Library::CoreLibrary()); 1760 const Library& core_lib = Library::Handle(Library::CoreLibrary());
1761 1761
1762 if (function_class.library() != core_lib.raw()) { 1762 if (function_class.library() != core_lib.raw()) {
(...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
2960 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1; 2960 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1;
2961 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); 2961 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len);
2962 OS::SNPrint(chars, len, kFormat, function_name, reason); 2962 OS::SNPrint(chars, len, kFormat, function_name, reason);
2963 const Error& error = Error::Handle( 2963 const Error& error = Error::Handle(
2964 LanguageError::New(String::Handle(String::New(chars)))); 2964 LanguageError::New(String::Handle(String::New(chars))));
2965 Isolate::Current()->long_jump_base()->Jump(1, error); 2965 Isolate::Current()->long_jump_base()->Jump(1, error);
2966 } 2966 }
2967 2967
2968 2968
2969 } // namespace dart 2969 } // namespace dart
OLDNEW
« no previous file with comments | « vm/dart_entry.cc ('k') | vm/handles.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698