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

Side by Side Diff: src/heap-inl.h

Issue 3047027: Avoid GC when compiling CallIC stubs.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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/heap.cc ('k') | src/ia32/stub-cache-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 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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 428
429 429
430 #ifdef DEBUG 430 #ifdef DEBUG
431 431
432 inline bool Heap::allow_allocation(bool new_state) { 432 inline bool Heap::allow_allocation(bool new_state) {
433 bool old = allocation_allowed_; 433 bool old = allocation_allowed_;
434 allocation_allowed_ = new_state; 434 allocation_allowed_ = new_state;
435 return old; 435 return old;
436 } 436 }
437 437
438 inline bool Heap::allow_gc(bool new_state) {
439 bool old = gc_allowed_;
440 gc_allowed_ = new_state;
441 return old;
442 }
443
438 #endif 444 #endif
439 445
440 446
441 void ExternalStringTable::AddString(String* string) { 447 void ExternalStringTable::AddString(String* string) {
442 ASSERT(string->IsExternalString()); 448 ASSERT(string->IsExternalString());
443 if (Heap::InNewSpace(string)) { 449 if (Heap::InNewSpace(string)) {
444 new_space_strings_.Add(string); 450 new_space_strings_.Add(string);
445 } else { 451 } else {
446 old_space_strings_.Add(string); 452 old_space_strings_.Add(string);
447 } 453 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 490
485 491
486 void ExternalStringTable::ShrinkNewStrings(int position) { 492 void ExternalStringTable::ShrinkNewStrings(int position) {
487 new_space_strings_.Rewind(position); 493 new_space_strings_.Rewind(position);
488 Verify(); 494 Verify();
489 } 495 }
490 496
491 } } // namespace v8::internal 497 } } // namespace v8::internal
492 498
493 #endif // V8_HEAP_INL_H_ 499 #endif // V8_HEAP_INL_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698