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

Side by Side Diff: src/heap.h

Issue 16925008: Generate StoreGlobal stubs with Hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use pointer -> handle trampoline 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
« no previous file with comments | « src/factory.h ('k') | src/heap.cc » ('j') | src/objects.cc » ('J')
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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 "KeyedStoreElementMonomorphic") \ 254 "KeyedStoreElementMonomorphic") \
255 V(stack_overflow_string, "kStackOverflowBoilerplate") \ 255 V(stack_overflow_string, "kStackOverflowBoilerplate") \
256 V(illegal_access_string, "illegal access") \ 256 V(illegal_access_string, "illegal access") \
257 V(out_of_memory_string, "out-of-memory") \ 257 V(out_of_memory_string, "out-of-memory") \
258 V(illegal_execution_state_string, "illegal execution state") \ 258 V(illegal_execution_state_string, "illegal execution state") \
259 V(get_string, "get") \ 259 V(get_string, "get") \
260 V(set_string, "set") \ 260 V(set_string, "set") \
261 V(map_field_string, "%map") \ 261 V(map_field_string, "%map") \
262 V(elements_field_string, "%elements") \ 262 V(elements_field_string, "%elements") \
263 V(length_field_string, "%length") \ 263 V(length_field_string, "%length") \
264 V(cell_value_string, "%cell_value") \
264 V(function_class_string, "Function") \ 265 V(function_class_string, "Function") \
265 V(properties_field_symbol, "%properties") \ 266 V(properties_field_symbol, "%properties") \
266 V(payload_field_symbol, "%payload") \ 267 V(payload_field_symbol, "%payload") \
267 V(illegal_argument_string, "illegal argument") \ 268 V(illegal_argument_string, "illegal argument") \
268 V(MakeReferenceError_string, "MakeReferenceError") \ 269 V(MakeReferenceError_string, "MakeReferenceError") \
269 V(MakeSyntaxError_string, "MakeSyntaxError") \ 270 V(MakeSyntaxError_string, "MakeSyntaxError") \
270 V(MakeTypeError_string, "MakeTypeError") \ 271 V(MakeTypeError_string, "MakeTypeError") \
271 V(invalid_lhs_in_assignment_string, "invalid_lhs_in_assignment") \ 272 V(invalid_lhs_in_assignment_string, "invalid_lhs_in_assignment") \
272 V(invalid_lhs_in_for_in_string, "invalid_lhs_in_for_in") \ 273 V(invalid_lhs_in_for_in_string, "invalid_lhs_in_for_in") \
273 V(invalid_lhs_in_postfix_op_string, "invalid_lhs_in_postfix_op") \ 274 V(invalid_lhs_in_postfix_op_string, "invalid_lhs_in_postfix_op") \
(...skipping 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1805 1806
1806 inline bool OldGenerationAllocationLimitReached(); 1807 inline bool OldGenerationAllocationLimitReached();
1807 1808
1808 inline void DoScavengeObject(Map* map, HeapObject** slot, HeapObject* obj) { 1809 inline void DoScavengeObject(Map* map, HeapObject** slot, HeapObject* obj) {
1809 scavenging_visitors_table_.GetVisitor(map)(map, slot, obj); 1810 scavenging_visitors_table_.GetVisitor(map)(map, slot, obj);
1810 } 1811 }
1811 1812
1812 void QueueMemoryChunkForFree(MemoryChunk* chunk); 1813 void QueueMemoryChunkForFree(MemoryChunk* chunk);
1813 void FreeQueuedChunks(); 1814 void FreeQueuedChunks();
1814 1815
1816 int gc_count() const { return gc_count_; }
1817
1815 // Completely clear the Instanceof cache (to stop it keeping objects alive 1818 // Completely clear the Instanceof cache (to stop it keeping objects alive
1816 // around a GC). 1819 // around a GC).
1817 inline void CompletelyClearInstanceofCache(); 1820 inline void CompletelyClearInstanceofCache();
1818 1821
1819 // The roots that have an index less than this are always in old space. 1822 // The roots that have an index less than this are always in old space.
1820 static const int kOldSpaceRoots = 0x20; 1823 static const int kOldSpaceRoots = 0x20;
1821 1824
1822 uint32_t HashSeed() { 1825 uint32_t HashSeed() {
1823 uint32_t seed = static_cast<uint32_t>(hash_seed()->value()); 1826 uint32_t seed = static_cast<uint32_t>(hash_seed()->value());
1824 ASSERT(FLAG_randomize_hashes || seed == 0); 1827 ASSERT(FLAG_randomize_hashes || seed == 0);
(...skipping 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after
3078 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3081 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3079 3082
3080 private: 3083 private:
3081 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3084 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3082 }; 3085 };
3083 #endif // DEBUG 3086 #endif // DEBUG
3084 3087
3085 } } // namespace v8::internal 3088 } } // namespace v8::internal
3086 3089
3087 #endif // V8_HEAP_H_ 3090 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/heap.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698