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

Side by Side Diff: src/heap.h

Issue 9304001: Implement inlining of constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed moar comments by Vyacheslav Egorov. Created 8 years, 9 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/frames-inl.h ('k') | src/hydrogen.h » ('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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 V(UnseededNumberDictionary, code_stubs, CodeStubs) \ 143 V(UnseededNumberDictionary, code_stubs, CodeStubs) \
144 V(UnseededNumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ 144 V(UnseededNumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \
145 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ 145 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \
146 V(Code, js_entry_code, JsEntryCode) \ 146 V(Code, js_entry_code, JsEntryCode) \
147 V(Code, js_construct_entry_code, JsConstructEntryCode) \ 147 V(Code, js_construct_entry_code, JsConstructEntryCode) \
148 V(FixedArray, natives_source_cache, NativesSourceCache) \ 148 V(FixedArray, natives_source_cache, NativesSourceCache) \
149 V(Object, last_script_id, LastScriptId) \ 149 V(Object, last_script_id, LastScriptId) \
150 V(Script, empty_script, EmptyScript) \ 150 V(Script, empty_script, EmptyScript) \
151 V(Smi, real_stack_limit, RealStackLimit) \ 151 V(Smi, real_stack_limit, RealStackLimit) \
152 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ 152 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \
153 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) 153 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \
154 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset)
154 155
155 #define ROOT_LIST(V) \ 156 #define ROOT_LIST(V) \
156 STRONG_ROOT_LIST(V) \ 157 STRONG_ROOT_LIST(V) \
157 V(SymbolTable, symbol_table, SymbolTable) 158 V(SymbolTable, symbol_table, SymbolTable)
158 159
159 #define SYMBOL_LIST(V) \ 160 #define SYMBOL_LIST(V) \
160 V(Array_symbol, "Array") \ 161 V(Array_symbol, "Array") \
161 V(Object_symbol, "Object") \ 162 V(Object_symbol, "Object") \
162 V(Proto_symbol, "__proto__") \ 163 V(Proto_symbol, "__proto__") \
163 V(StringImpl_symbol, "StringImpl") \ 164 V(StringImpl_symbol, "StringImpl") \
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 uint32_t seed = static_cast<uint32_t>(hash_seed()->value()); 1549 uint32_t seed = static_cast<uint32_t>(hash_seed()->value());
1549 ASSERT(FLAG_randomize_hashes || seed == 0); 1550 ASSERT(FLAG_randomize_hashes || seed == 0);
1550 return seed; 1551 return seed;
1551 } 1552 }
1552 1553
1553 void SetArgumentsAdaptorDeoptPCOffset(int pc_offset) { 1554 void SetArgumentsAdaptorDeoptPCOffset(int pc_offset) {
1554 ASSERT(arguments_adaptor_deopt_pc_offset() == Smi::FromInt(0)); 1555 ASSERT(arguments_adaptor_deopt_pc_offset() == Smi::FromInt(0));
1555 set_arguments_adaptor_deopt_pc_offset(Smi::FromInt(pc_offset)); 1556 set_arguments_adaptor_deopt_pc_offset(Smi::FromInt(pc_offset));
1556 } 1557 }
1557 1558
1559 void SetConstructStubDeoptPCOffset(int pc_offset) {
1560 ASSERT(construct_stub_deopt_pc_offset() == Smi::FromInt(0));
1561 set_construct_stub_deopt_pc_offset(Smi::FromInt(pc_offset));
1562 }
1563
1558 private: 1564 private:
1559 Heap(); 1565 Heap();
1560 1566
1561 // This can be calculated directly from a pointer to the heap; however, it is 1567 // This can be calculated directly from a pointer to the heap; however, it is
1562 // more expedient to get at the isolate directly from within Heap methods. 1568 // more expedient to get at the isolate directly from within Heap methods.
1563 Isolate* isolate_; 1569 Isolate* isolate_;
1564 1570
1565 intptr_t code_range_size_; 1571 intptr_t code_range_size_;
1566 int reserved_semispace_size_; 1572 int reserved_semispace_size_;
1567 int max_semispace_size_; 1573 int max_semispace_size_;
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
2629 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2635 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2630 2636
2631 private: 2637 private:
2632 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2638 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2633 }; 2639 };
2634 #endif // DEBUG || LIVE_OBJECT_LIST 2640 #endif // DEBUG || LIVE_OBJECT_LIST
2635 2641
2636 } } // namespace v8::internal 2642 } } // namespace v8::internal
2637 2643
2638 #endif // V8_HEAP_H_ 2644 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/frames-inl.h ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698