| OLD | NEW |
| 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/dart_entry.h" | 5 #include "vm/dart_entry.h" |
| 6 | 6 |
| 7 #include "vm/code_generator.h" | 7 #include "vm/code_generator.h" |
| 8 #include "vm/compiler.h" | 8 #include "vm/compiler.h" |
| 9 #include "vm/object_store.h" | 9 #include "vm/object_store.h" |
| 10 #include "vm/resolver.h" | 10 #include "vm/resolver.h" |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 function, | 211 function, |
| 212 arguments, | 212 arguments, |
| 213 kNoArgumentNames)); | 213 kNoArgumentNames)); |
| 214 ASSERT(result.IsInstance() || result.IsError()); | 214 ASSERT(result.IsInstance() || result.IsError()); |
| 215 return result.raw(); | 215 return result.raw(); |
| 216 } | 216 } |
| 217 | 217 |
| 218 | 218 |
| 219 RawObject* DartLibraryCalls::Equals(const Instance& left, | 219 RawObject* DartLibraryCalls::Equals(const Instance& left, |
| 220 const Instance& right) { | 220 const Instance& right) { |
| 221 const String& function_name = | 221 const String& function_name = String::Handle(Symbols::EqualOperator()); |
| 222 String::Handle(Symbols::New("==")); | |
| 223 GrowableArray<const Object*> arguments; | 222 GrowableArray<const Object*> arguments; |
| 224 arguments.Add(&right); | 223 arguments.Add(&right); |
| 225 const int kNumArguments = 2; | 224 const int kNumArguments = 2; |
| 226 const int kNumNamedArguments = 0; | 225 const int kNumNamedArguments = 0; |
| 227 const Array& kNoArgumentNames = Array::Handle(); | 226 const Array& kNoArgumentNames = Array::Handle(); |
| 228 const Function& function = Function::Handle( | 227 const Function& function = Function::Handle( |
| 229 Resolver::ResolveDynamic(left, | 228 Resolver::ResolveDynamic(left, |
| 230 function_name, | 229 function_name, |
| 231 kNumArguments, | 230 kNumArguments, |
| 232 kNumNamedArguments)); | 231 kNumNamedArguments)); |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 const String& func_name = String::Handle(Field::GetterName(field_name)); | 314 const String& func_name = String::Handle(Field::GetterName(field_name)); |
| 316 const Function& func = Function::Handle(cls.LookupDynamicFunction(func_name)); | 315 const Function& func = Function::Handle(cls.LookupDynamicFunction(func_name)); |
| 317 ASSERT(!func.IsNull()); | 316 ASSERT(!func.IsNull()); |
| 318 GrowableArray<const Object*> arguments; | 317 GrowableArray<const Object*> arguments; |
| 319 const Array& kNoArgumentNames = Array::Handle(); | 318 const Array& kNoArgumentNames = Array::Handle(); |
| 320 return DartEntry::InvokeDynamic(port, func, arguments, kNoArgumentNames); | 319 return DartEntry::InvokeDynamic(port, func, arguments, kNoArgumentNames); |
| 321 } | 320 } |
| 322 | 321 |
| 323 | 322 |
| 324 } // namespace dart | 323 } // namespace dart |
| OLD | NEW |