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

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: Created 7 years, 5 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
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) \
yurys 2013/06/25 11:57:38 Why not make it simple int property and probably m
loislo 2013/06/25 13:04:53 factory is a memberless class. So it cannot be use
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 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 1443 // Update the next script id.
1444 inline void SetLastScriptId(Object* last_script_id); 1444 inline void SetLastScriptId(int last_script_id);
Jakob Kummerow 2013/06/25 11:58:39 I don't think we need this any more, since AFAICT
loislo 2013/06/25 13:04:53 Done.
loislo 2013/06/25 13:04:53 Done.
1445 1445
1446 // Generated code can embed this address to get access to the roots. 1446 // Generated code can embed this address to get access to the roots.
1447 Object** roots_array_start() { return roots_; } 1447 Object** roots_array_start() { return roots_; }
1448 1448
1449 Address* store_buffer_top_address() { 1449 Address* store_buffer_top_address() {
1450 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); 1450 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]);
1451 } 1451 }
1452 1452
1453 // Get address of native contexts list for serialization support. 1453 // Get address of native contexts list for serialization support.
1454 Object** native_contexts_list_address() { 1454 Object** native_contexts_list_address() {
(...skipping 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after
3077 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3077 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3078 3078
3079 private: 3079 private:
3080 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3080 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3081 }; 3081 };
3082 #endif // DEBUG 3082 #endif // DEBUG
3083 3083
3084 } } // namespace v8::internal 3084 } } // namespace v8::internal
3085 3085
3086 #endif // V8_HEAP_H_ 3086 #endif // V8_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698