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

Side by Side Diff: src/heap.h

Issue 17600006: CPUProfiler: It is not clear why we are using Handle<Object> for scriptId. Lets flip it into Smi/in… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: comments addressed Created 7 years, 6 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 | « src/factory.cc ('k') | src/heap.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 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 V(HeapNumber, infinity_value, InfinityValue) \ 168 V(HeapNumber, infinity_value, InfinityValue) \
169 V(HeapNumber, minus_zero_value, MinusZeroValue) \ 169 V(HeapNumber, minus_zero_value, MinusZeroValue) \
170 V(Map, neander_map, NeanderMap) \ 170 V(Map, neander_map, NeanderMap) \
171 V(JSObject, message_listeners, MessageListeners) \ 171 V(JSObject, message_listeners, MessageListeners) \
172 V(UnseededNumberDictionary, code_stubs, CodeStubs) \ 172 V(UnseededNumberDictionary, code_stubs, CodeStubs) \
173 V(UnseededNumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ 173 V(UnseededNumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \
174 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ 174 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \
175 V(Code, js_entry_code, JsEntryCode) \ 175 V(Code, js_entry_code, JsEntryCode) \
176 V(Code, js_construct_entry_code, JsConstructEntryCode) \ 176 V(Code, js_construct_entry_code, JsConstructEntryCode) \
177 V(FixedArray, natives_source_cache, NativesSourceCache) \ 177 V(FixedArray, natives_source_cache, NativesSourceCache) \
178 V(Object, last_script_id, LastScriptId) \ 178 V(Smi, last_script_id, LastScriptId) \
179 V(Script, empty_script, EmptyScript) \ 179 V(Script, empty_script, EmptyScript) \
180 V(Smi, real_stack_limit, RealStackLimit) \ 180 V(Smi, real_stack_limit, RealStackLimit) \
181 V(NameDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ 181 V(NameDictionary, intrinsic_function_names, IntrinsicFunctionNames) \
182 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ 182 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \
183 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ 183 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \
184 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ 184 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \
185 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) \ 185 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) \
186 V(JSObject, observation_state, ObservationState) \ 186 V(JSObject, observation_state, ObservationState) \
187 V(Map, external_map, ExternalMap) \ 187 V(Map, external_map, ExternalMap) \
188 V(Symbol, frozen_symbol, FrozenSymbol) \ 188 V(Symbol, frozen_symbol, FrozenSymbol) \
(...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 } 1433 }
1434 1434
1435 void public_set_empty_script(Script* script) { 1435 void public_set_empty_script(Script* script) {
1436 roots_[kEmptyScriptRootIndex] = script; 1436 roots_[kEmptyScriptRootIndex] = script;
1437 } 1437 }
1438 1438
1439 void public_set_store_buffer_top(Address* top) { 1439 void public_set_store_buffer_top(Address* top) {
1440 roots_[kStoreBufferTopRootIndex] = reinterpret_cast<Smi*>(top); 1440 roots_[kStoreBufferTopRootIndex] = reinterpret_cast<Smi*>(top);
1441 } 1441 }
1442 1442
1443 // Update the next script id.
1444 inline void SetLastScriptId(Object* last_script_id);
1445
1446 // Generated code can embed this address to get access to the roots. 1443 // Generated code can embed this address to get access to the roots.
1447 Object** roots_array_start() { return roots_; } 1444 Object** roots_array_start() { return roots_; }
1448 1445
1449 Address* store_buffer_top_address() { 1446 Address* store_buffer_top_address() {
1450 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); 1447 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]);
1451 } 1448 }
1452 1449
1453 // Get address of native contexts list for serialization support. 1450 // Get address of native contexts list for serialization support.
1454 Object** native_contexts_list_address() { 1451 Object** native_contexts_list_address() {
1455 return &native_contexts_list_; 1452 return &native_contexts_list_;
(...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after
3077 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3074 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3078 3075
3079 private: 3076 private:
3080 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3077 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3081 }; 3078 };
3082 #endif // DEBUG 3079 #endif // DEBUG
3083 3080
3084 } } // namespace v8::internal 3081 } } // namespace v8::internal
3085 3082
3086 #endif // V8_HEAP_H_ 3083 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698