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

Side by Side Diff: src/heap.h

Issue 10855098: Deoptimization support for accessors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Tiny test changes. Rebased. Created 8 years, 4 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/flag-definitions.h ('k') | src/ia32/deoptimizer-ia32.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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 V(UnseededNumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ 143 V(UnseededNumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \
144 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ 144 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \
145 V(Code, js_entry_code, JsEntryCode) \ 145 V(Code, js_entry_code, JsEntryCode) \
146 V(Code, js_construct_entry_code, JsConstructEntryCode) \ 146 V(Code, js_construct_entry_code, JsConstructEntryCode) \
147 V(FixedArray, natives_source_cache, NativesSourceCache) \ 147 V(FixedArray, natives_source_cache, NativesSourceCache) \
148 V(Object, last_script_id, LastScriptId) \ 148 V(Object, last_script_id, LastScriptId) \
149 V(Script, empty_script, EmptyScript) \ 149 V(Script, empty_script, EmptyScript) \
150 V(Smi, real_stack_limit, RealStackLimit) \ 150 V(Smi, real_stack_limit, RealStackLimit) \
151 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ 151 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \
152 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ 152 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \
153 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) 153 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \
154 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset)
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 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 void SetArgumentsAdaptorDeoptPCOffset(int pc_offset) { 1579 void SetArgumentsAdaptorDeoptPCOffset(int pc_offset) {
1579 ASSERT(arguments_adaptor_deopt_pc_offset() == Smi::FromInt(0)); 1580 ASSERT(arguments_adaptor_deopt_pc_offset() == Smi::FromInt(0));
1580 set_arguments_adaptor_deopt_pc_offset(Smi::FromInt(pc_offset)); 1581 set_arguments_adaptor_deopt_pc_offset(Smi::FromInt(pc_offset));
1581 } 1582 }
1582 1583
1583 void SetConstructStubDeoptPCOffset(int pc_offset) { 1584 void SetConstructStubDeoptPCOffset(int pc_offset) {
1584 ASSERT(construct_stub_deopt_pc_offset() == Smi::FromInt(0)); 1585 ASSERT(construct_stub_deopt_pc_offset() == Smi::FromInt(0));
1585 set_construct_stub_deopt_pc_offset(Smi::FromInt(pc_offset)); 1586 set_construct_stub_deopt_pc_offset(Smi::FromInt(pc_offset));
1586 } 1587 }
1587 1588
1589 void SetSetterStubDeoptPCOffset(int pc_offset) {
1590 ASSERT(setter_stub_deopt_pc_offset() == Smi::FromInt(0));
1591 set_setter_stub_deopt_pc_offset(Smi::FromInt(pc_offset));
1592 }
1593
1588 // For post mortem debugging. 1594 // For post mortem debugging.
1589 void RememberUnmappedPage(Address page, bool compacted); 1595 void RememberUnmappedPage(Address page, bool compacted);
1590 1596
1591 // Global inline caching age: it is incremented on some GCs after context 1597 // Global inline caching age: it is incremented on some GCs after context
1592 // disposal. We use it to flush inline caches. 1598 // disposal. We use it to flush inline caches.
1593 int global_ic_age() { 1599 int global_ic_age() {
1594 return global_ic_age_; 1600 return global_ic_age_;
1595 } 1601 }
1596 1602
1597 void AgeInlineCaches() { 1603 void AgeInlineCaches() {
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after
2773 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2779 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2774 2780
2775 private: 2781 private:
2776 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2782 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2777 }; 2783 };
2778 #endif // DEBUG || LIVE_OBJECT_LIST 2784 #endif // DEBUG || LIVE_OBJECT_LIST
2779 2785
2780 } } // namespace v8::internal 2786 } } // namespace v8::internal
2781 2787
2782 #endif // V8_HEAP_H_ 2788 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/ia32/deoptimizer-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698