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

Side by Side Diff: runtime/vm/object.h

Issue 23514020: Evaluation of expression in context of library top-level (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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/debugger_api_impl_test.cc ('k') | runtime/vm/object.cc » ('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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 2332 matching lines...) Expand 10 before | Expand all | Expand 10 after
2343 return raw_ptr()->load_state_ == RawLibrary::kLoadError; 2343 return raw_ptr()->load_state_ == RawLibrary::kLoadError;
2344 } 2344 }
2345 void SetLoadError() const; 2345 void SetLoadError() const;
2346 2346
2347 static intptr_t InstanceSize() { 2347 static intptr_t InstanceSize() {
2348 return RoundedAllocationSize(sizeof(RawLibrary)); 2348 return RoundedAllocationSize(sizeof(RawLibrary));
2349 } 2349 }
2350 2350
2351 static RawLibrary* New(const String& url); 2351 static RawLibrary* New(const String& url);
2352 2352
2353 RawObject* Evaluate(const String& expr) const;
2354
2353 // Library scope name dictionary. 2355 // Library scope name dictionary.
2354 // 2356 //
2355 // TODO(turnidge): The Lookup functions are not consistent in how 2357 // TODO(turnidge): The Lookup functions are not consistent in how
2356 // they deal with private names. Go through and make them a bit 2358 // they deal with private names. Go through and make them a bit
2357 // more regular. 2359 // more regular.
2358 void AddClass(const Class& cls) const; 2360 void AddClass(const Class& cls) const;
2359 void AddObject(const Object& obj, const String& name) const; 2361 void AddObject(const Object& obj, const String& name) const;
2360 void ReplaceObject(const Object& obj, const String& name) const; 2362 void ReplaceObject(const Object& obj, const String& name) const;
2361 RawObject* LookupExport(const String& name) const; 2363 RawObject* LookupExport(const String& name) const;
2362 RawObject* LookupObject(const String& name, 2364 RawObject* LookupObject(const String& name,
(...skipping 3786 matching lines...) Expand 10 before | Expand all | Expand 10 after
6149 6151
6150 6152
6151 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6153 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6152 intptr_t index) { 6154 intptr_t index) {
6153 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6155 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6154 } 6156 }
6155 6157
6156 } // namespace dart 6158 } // namespace dart
6157 6159
6158 #endif // VM_OBJECT_H_ 6160 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/debugger_api_impl_test.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698