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

Side by Side Diff: src/heap.cc

Issue 140069: Store a lookup result when compiling interceptor ICs.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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.h ('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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after
1404 set_true_value(obj); 1404 set_true_value(obj);
1405 1405
1406 obj = CreateOddball(oddball_map(), "false", Smi::FromInt(0)); 1406 obj = CreateOddball(oddball_map(), "false", Smi::FromInt(0));
1407 if (obj->IsFailure()) return false; 1407 if (obj->IsFailure()) return false;
1408 set_false_value(obj); 1408 set_false_value(obj);
1409 1409
1410 obj = CreateOddball(oddball_map(), "hole", Smi::FromInt(-1)); 1410 obj = CreateOddball(oddball_map(), "hole", Smi::FromInt(-1));
1411 if (obj->IsFailure()) return false; 1411 if (obj->IsFailure()) return false;
1412 set_the_hole_value(obj); 1412 set_the_hole_value(obj);
1413 1413
1414 obj = CreateOddball(
1415 oddball_map(), "no_interceptor_result_sentinel", Smi::FromInt(-2));
1416 if (obj->IsFailure()) return false;
1417 set_no_interceptor_result_sentinel(obj);
1418
1419
1414 // Allocate the empty string. 1420 // Allocate the empty string.
1415 obj = AllocateRawAsciiString(0, TENURED); 1421 obj = AllocateRawAsciiString(0, TENURED);
1416 if (obj->IsFailure()) return false; 1422 if (obj->IsFailure()) return false;
1417 set_empty_string(String::cast(obj)); 1423 set_empty_string(String::cast(obj));
1418 1424
1419 for (unsigned i = 0; i < ARRAY_SIZE(constant_symbol_table); i++) { 1425 for (unsigned i = 0; i < ARRAY_SIZE(constant_symbol_table); i++) {
1420 obj = LookupAsciiSymbol(constant_symbol_table[i].contents); 1426 obj = LookupAsciiSymbol(constant_symbol_table[i].contents);
1421 if (obj->IsFailure()) return false; 1427 if (obj->IsFailure()) return false;
1422 roots_[constant_symbol_table[i].index] = String::cast(obj); 1428 roots_[constant_symbol_table[i].index] = String::cast(obj);
1423 } 1429 }
(...skipping 2314 matching lines...) Expand 10 before | Expand all | Expand 10 after
3738 #ifdef DEBUG 3744 #ifdef DEBUG
3739 bool Heap::GarbageCollectionGreedyCheck() { 3745 bool Heap::GarbageCollectionGreedyCheck() {
3740 ASSERT(FLAG_gc_greedy); 3746 ASSERT(FLAG_gc_greedy);
3741 if (Bootstrapper::IsActive()) return true; 3747 if (Bootstrapper::IsActive()) return true;
3742 if (disallow_allocation_failure()) return true; 3748 if (disallow_allocation_failure()) return true;
3743 return CollectGarbage(0, NEW_SPACE); 3749 return CollectGarbage(0, NEW_SPACE);
3744 } 3750 }
3745 #endif 3751 #endif
3746 3752
3747 } } // namespace v8::internal 3753 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698