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

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

Issue 789643006: Introduce is_debuggable state bit on function objects (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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/regexp.cc ('k') | no next file » | 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) 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/resolver.h" 5 #include "vm/resolver.h"
6 6
7 #include "vm/dart_entry.h" 7 #include "vm/dart_entry.h"
8 #include "vm/flags.h" 8 #include "vm/flags.h"
9 #include "vm/isolate.h" 9 #include "vm/isolate.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 // Initialize signature: receiver is a single fixed parameter. 84 // Initialize signature: receiver is a single fixed parameter.
85 const intptr_t kNumParameters = 1; 85 const intptr_t kNumParameters = 1;
86 extractor.set_num_fixed_parameters(kNumParameters); 86 extractor.set_num_fixed_parameters(kNumParameters);
87 extractor.SetNumOptionalParameters(0, 0); 87 extractor.SetNumOptionalParameters(0, 0);
88 extractor.set_parameter_types(Object::extractor_parameter_types()); 88 extractor.set_parameter_types(Object::extractor_parameter_types());
89 extractor.set_parameter_names(Object::extractor_parameter_names()); 89 extractor.set_parameter_names(Object::extractor_parameter_names());
90 extractor.set_result_type(Type::Handle(Type::DynamicType())); 90 extractor.set_result_type(Type::Handle(Type::DynamicType()));
91 91
92 extractor.set_extracted_method_closure(closure_function); 92 extractor.set_extracted_method_closure(closure_function);
93 extractor.set_is_debuggable(false);
93 94
94 owner.AddFunction(extractor); 95 owner.AddFunction(extractor);
95 96
96 return extractor.raw(); 97 return extractor.raw();
97 } 98 }
98 99
99 100
100 RawFunction* Resolver::ResolveDynamicAnyArgs( 101 RawFunction* Resolver::ResolveDynamicAnyArgs(
101 const Class& receiver_class, 102 const Class& receiver_class,
102 const String& function_name) { 103 const String& function_name) {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 OS::Print("ResolveStatic error '%s': %s.\n", 215 OS::Print("ResolveStatic error '%s': %s.\n",
215 function_name.ToCString(), 216 function_name.ToCString(),
216 error_message.ToCString()); 217 error_message.ToCString());
217 } 218 }
218 return Function::null(); 219 return Function::null();
219 } 220 }
220 return function.raw(); 221 return function.raw();
221 } 222 }
222 223
223 } // namespace dart 224 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/regexp.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698