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

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

Issue 23723008: Fixes slow object pool search on x64. (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
« runtime/vm/assembler_x64.cc ('K') | « runtime/vm/assembler_x64.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) 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 330
331 static Object& ZoneHandle() { 331 static Object& ZoneHandle() {
332 return ZoneHandle(Isolate::Current(), null_); 332 return ZoneHandle(Isolate::Current(), null_);
333 } 333 }
334 334
335 static Object& ZoneHandle(RawObject* raw_ptr) { 335 static Object& ZoneHandle(RawObject* raw_ptr) {
336 return ZoneHandle(Isolate::Current(), raw_ptr); 336 return ZoneHandle(Isolate::Current(), raw_ptr);
337 } 337 }
338 338
339 static RawObject* null() { return null_; } 339 static RawObject* null() { return null_; }
340
340 static const Object& null_object() { 341 static const Object& null_object() {
341 ASSERT(null_object_ != NULL); 342 ASSERT(null_object_ != NULL);
342 return *null_object_; 343 return *null_object_;
343 } 344 }
344 static const Array& null_array() { 345 static const Array& null_array() {
345 ASSERT(null_array_ != NULL); 346 ASSERT(null_array_ != NULL);
346 return *null_array_; 347 return *null_array_;
347 } 348 }
348 static const String& null_string() { 349 static const String& null_string() {
349 ASSERT(null_string_ != NULL); 350 ASSERT(null_string_ != NULL);
(...skipping 5808 matching lines...) Expand 10 before | Expand all | Expand 10 after
6158 6159
6159 6160
6160 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6161 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6161 intptr_t index) { 6162 intptr_t index) {
6162 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6163 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6163 } 6164 }
6164 6165
6165 } // namespace dart 6166 } // namespace dart
6166 6167
6167 #endif // VM_OBJECT_H_ 6168 #endif // VM_OBJECT_H_
OLDNEW
« runtime/vm/assembler_x64.cc ('K') | « runtime/vm/assembler_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698