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

Side by Side Diff: src/heap.cc

Issue 9716028: Merge r11075 from bleeding_edge to 3.8 branch: Revert dynamic frame alignment. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.8/
Patch Set: 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/heap.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 2415 matching lines...) Expand 10 before | Expand all | Expand 10 after
2426 set_false_value(Oddball::cast(obj)); 2426 set_false_value(Oddball::cast(obj));
2427 2427
2428 { MaybeObject* maybe_obj = CreateOddball("hole", 2428 { MaybeObject* maybe_obj = CreateOddball("hole",
2429 Smi::FromInt(-1), 2429 Smi::FromInt(-1),
2430 Oddball::kTheHole); 2430 Oddball::kTheHole);
2431 if (!maybe_obj->ToObject(&obj)) return false; 2431 if (!maybe_obj->ToObject(&obj)) return false;
2432 } 2432 }
2433 set_the_hole_value(Oddball::cast(obj)); 2433 set_the_hole_value(Oddball::cast(obj));
2434 2434
2435 { MaybeObject* maybe_obj = CreateOddball("arguments_marker", 2435 { MaybeObject* maybe_obj = CreateOddball("arguments_marker",
2436 Smi::FromInt(-2), 2436 Smi::FromInt(-4),
2437 Oddball::kArgumentMarker); 2437 Oddball::kArgumentMarker);
2438 if (!maybe_obj->ToObject(&obj)) return false; 2438 if (!maybe_obj->ToObject(&obj)) return false;
2439 } 2439 }
2440 set_arguments_marker(Oddball::cast(obj)); 2440 set_arguments_marker(Oddball::cast(obj));
2441 2441
2442 { MaybeObject* maybe_obj = CreateOddball("no_interceptor_result_sentinel", 2442 { MaybeObject* maybe_obj = CreateOddball("no_interceptor_result_sentinel",
2443 Smi::FromInt(-3), 2443 Smi::FromInt(-2),
2444 Oddball::kOther); 2444 Oddball::kOther);
2445 if (!maybe_obj->ToObject(&obj)) return false; 2445 if (!maybe_obj->ToObject(&obj)) return false;
2446 } 2446 }
2447 set_no_interceptor_result_sentinel(obj); 2447 set_no_interceptor_result_sentinel(obj);
2448 2448
2449 { MaybeObject* maybe_obj = CreateOddball("termination_exception", 2449 { MaybeObject* maybe_obj = CreateOddball("termination_exception",
2450 Smi::FromInt(-4), 2450 Smi::FromInt(-3),
2451 Oddball::kOther); 2451 Oddball::kOther);
2452 if (!maybe_obj->ToObject(&obj)) return false; 2452 if (!maybe_obj->ToObject(&obj)) return false;
2453 } 2453 }
2454 set_termination_exception(obj); 2454 set_termination_exception(obj);
2455 2455
2456 { MaybeObject* maybe_obj = CreateOddball("frame_alignment_marker",
2457 Smi::FromInt(-5),
2458 Oddball::kOther);
2459 if (!maybe_obj->ToObject(&obj)) return false;
2460 }
2461 set_frame_alignment_marker(Oddball::cast(obj));
2462 STATIC_ASSERT(Oddball::kLeastHiddenOddballNumber == -5);
2463
2464 // Allocate the empty string. 2456 // Allocate the empty string.
2465 { MaybeObject* maybe_obj = AllocateRawAsciiString(0, TENURED); 2457 { MaybeObject* maybe_obj = AllocateRawAsciiString(0, TENURED);
2466 if (!maybe_obj->ToObject(&obj)) return false; 2458 if (!maybe_obj->ToObject(&obj)) return false;
2467 } 2459 }
2468 set_empty_string(String::cast(obj)); 2460 set_empty_string(String::cast(obj));
2469 2461
2470 for (unsigned i = 0; i < ARRAY_SIZE(constant_symbol_table); i++) { 2462 for (unsigned i = 0; i < ARRAY_SIZE(constant_symbol_table); i++) {
2471 { MaybeObject* maybe_obj = 2463 { MaybeObject* maybe_obj =
2472 LookupAsciiSymbol(constant_symbol_table[i].contents); 2464 LookupAsciiSymbol(constant_symbol_table[i].contents);
2473 if (!maybe_obj->ToObject(&obj)) return false; 2465 if (!maybe_obj->ToObject(&obj)) return false;
(...skipping 4268 matching lines...) Expand 10 before | Expand all | Expand 10 after
6742 isolate_->heap()->store_buffer()->Compact(); 6734 isolate_->heap()->store_buffer()->Compact();
6743 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); 6735 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED);
6744 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { 6736 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) {
6745 next = chunk->next_chunk(); 6737 next = chunk->next_chunk();
6746 isolate_->memory_allocator()->Free(chunk); 6738 isolate_->memory_allocator()->Free(chunk);
6747 } 6739 }
6748 chunks_queued_for_free_ = NULL; 6740 chunks_queued_for_free_ = NULL;
6749 } 6741 }
6750 6742
6751 } } // namespace v8::internal 6743 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/ia32/deoptimizer-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698