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

Side by Side Diff: src/heap.h

Issue 57123002: Reland 21774: Generate KeyedLoadGeneric with Hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Turn off by default Created 7 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2624 matching lines...) Expand 10 before | Expand all | Expand 10 after
2635 2635
2636 private: 2636 private:
2637 KeyedLookupCache() { 2637 KeyedLookupCache() {
2638 for (int i = 0; i < kLength; ++i) { 2638 for (int i = 0; i < kLength; ++i) {
2639 keys_[i].map = NULL; 2639 keys_[i].map = NULL;
2640 keys_[i].name = NULL; 2640 keys_[i].name = NULL;
2641 field_offsets_[i] = kNotFound; 2641 field_offsets_[i] = kNotFound;
2642 } 2642 }
2643 } 2643 }
2644 2644
2645 int ConvertToFastIndexForGeneratedCode(Map* map, int index);
2646 int ConvertFromFastIndexForGeneratedCode(Map* map, int index);
2647
2645 static inline int Hash(Map* map, Name* name); 2648 static inline int Hash(Map* map, Name* name);
2646 2649
2647 // Get the address of the keys and field_offsets arrays. Used in 2650 // Get the address of the keys and field_offsets arrays. Used in
2648 // generated code to perform cache lookups. 2651 // generated code to perform cache lookups.
2649 Address keys_address() { 2652 Address keys_address() {
2650 return reinterpret_cast<Address>(&keys_); 2653 return reinterpret_cast<Address>(&keys_);
2651 } 2654 }
2652 2655
2653 Address field_offsets_address() { 2656 Address field_offsets_address() {
2654 return reinterpret_cast<Address>(&field_offsets_); 2657 return reinterpret_cast<Address>(&field_offsets_);
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
3088 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3091 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3089 3092
3090 private: 3093 private:
3091 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3094 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3092 }; 3095 };
3093 #endif // DEBUG 3096 #endif // DEBUG
3094 3097
3095 } } // namespace v8::internal 3098 } } // namespace v8::internal
3096 3099
3097 #endif // V8_HEAP_H_ 3100 #endif // V8_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698