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

Side by Side Diff: src/heap.h

Issue 14834: Fixing a subtle bug in receiver resolution when a thrown and caught function ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 V(Map, undetectable_short_string_map) \ 85 V(Map, undetectable_short_string_map) \
86 V(Map, undetectable_medium_string_map) \ 86 V(Map, undetectable_medium_string_map) \
87 V(Map, undetectable_long_string_map) \ 87 V(Map, undetectable_long_string_map) \
88 V(Map, undetectable_short_ascii_string_map) \ 88 V(Map, undetectable_short_ascii_string_map) \
89 V(Map, undetectable_medium_ascii_string_map) \ 89 V(Map, undetectable_medium_ascii_string_map) \
90 V(Map, undetectable_long_ascii_string_map) \ 90 V(Map, undetectable_long_ascii_string_map) \
91 V(Map, byte_array_map) \ 91 V(Map, byte_array_map) \
92 V(Map, fixed_array_map) \ 92 V(Map, fixed_array_map) \
93 V(Map, hash_table_map) \ 93 V(Map, hash_table_map) \
94 V(Map, context_map) \ 94 V(Map, context_map) \
95 V(Map, catch_context_map) \
95 V(Map, global_context_map) \ 96 V(Map, global_context_map) \
96 V(Map, code_map) \ 97 V(Map, code_map) \
97 V(Map, oddball_map) \ 98 V(Map, oddball_map) \
98 V(Map, boilerplate_function_map) \ 99 V(Map, boilerplate_function_map) \
99 V(Map, shared_function_info_map) \ 100 V(Map, shared_function_info_map) \
100 V(Map, proxy_map) \ 101 V(Map, proxy_map) \
101 V(Map, one_word_filler_map) \ 102 V(Map, one_word_filler_map) \
102 V(Map, two_word_filler_map) \ 103 V(Map, two_word_filler_map) \
103 V(Object, nan_value) \ 104 V(Object, nan_value) \
104 V(Object, undefined_value) \ 105 V(Object, undefined_value) \
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 // that the resulting object has hash_table_map as map. 424 // that the resulting object has hash_table_map as map.
424 static Object* AllocateHashTable(int length); 425 static Object* AllocateHashTable(int length);
425 426
426 // Allocate a global (but otherwise uninitialized) context. 427 // Allocate a global (but otherwise uninitialized) context.
427 static Object* AllocateGlobalContext(); 428 static Object* AllocateGlobalContext();
428 429
429 // Allocate a function context. 430 // Allocate a function context.
430 static Object* AllocateFunctionContext(int length, JSFunction* closure); 431 static Object* AllocateFunctionContext(int length, JSFunction* closure);
431 432
432 // Allocate a 'with' context. 433 // Allocate a 'with' context.
433 static Object* AllocateWithContext(Context* previous, JSObject* extension); 434 static Object* AllocateWithContext(Context* previous,
435 JSObject* extension,
436 bool is_catch_context);
434 437
435 // Allocates a new utility object in the old generation. 438 // Allocates a new utility object in the old generation.
436 static Object* AllocateStruct(InstanceType type); 439 static Object* AllocateStruct(InstanceType type);
437 440
438 441
439 // Initializes a function with a shared part and prototype. 442 // Initializes a function with a shared part and prototype.
440 // Returns the function. 443 // Returns the function.
441 // Note: this code was factored out of AllocateFunction such that 444 // Note: this code was factored out of AllocateFunction such that
442 // other parts of the VM could use it. Specifically, a function that creates 445 // other parts of the VM could use it. Specifically, a function that creates
443 // instances of type JS_FUNCTION_TYPE benefit from the use of this function. 446 // instances of type JS_FUNCTION_TYPE benefit from the use of this function.
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 int marked_count_; 1286 int marked_count_;
1284 1287
1285 // The count from the end of the previous full GC. Will be zero if there 1288 // The count from the end of the previous full GC. Will be zero if there
1286 // was no previous full GC. 1289 // was no previous full GC.
1287 int previous_marked_count_; 1290 int previous_marked_count_;
1288 }; 1291 };
1289 1292
1290 } } // namespace v8::internal 1293 } } // namespace v8::internal
1291 1294
1292 #endif // V8_HEAP_H_ 1295 #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