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

Side by Side Diff: src/heap.cc

Issue 1605037: Remove some remaining references to boilerplate functions. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 8 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/codegen-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 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 set_context_map(Map::cast(obj)); 1437 set_context_map(Map::cast(obj));
1438 1438
1439 obj = AllocateMap(FIXED_ARRAY_TYPE, HeapObject::kHeaderSize); 1439 obj = AllocateMap(FIXED_ARRAY_TYPE, HeapObject::kHeaderSize);
1440 if (obj->IsFailure()) return false; 1440 if (obj->IsFailure()) return false;
1441 set_catch_context_map(Map::cast(obj)); 1441 set_catch_context_map(Map::cast(obj));
1442 1442
1443 obj = AllocateMap(FIXED_ARRAY_TYPE, HeapObject::kHeaderSize); 1443 obj = AllocateMap(FIXED_ARRAY_TYPE, HeapObject::kHeaderSize);
1444 if (obj->IsFailure()) return false; 1444 if (obj->IsFailure()) return false;
1445 set_global_context_map(Map::cast(obj)); 1445 set_global_context_map(Map::cast(obj));
1446 1446
1447 obj = AllocateMap(JS_FUNCTION_TYPE, JSFunction::kSize);
1448 if (obj->IsFailure()) return false;
1449 set_boilerplate_function_map(Map::cast(obj));
1450
1451 obj = AllocateMap(SHARED_FUNCTION_INFO_TYPE, 1447 obj = AllocateMap(SHARED_FUNCTION_INFO_TYPE,
1452 SharedFunctionInfo::kAlignedSize); 1448 SharedFunctionInfo::kAlignedSize);
1453 if (obj->IsFailure()) return false; 1449 if (obj->IsFailure()) return false;
1454 set_shared_function_info_map(Map::cast(obj)); 1450 set_shared_function_info_map(Map::cast(obj));
1455 1451
1456 ASSERT(!Heap::InNewSpace(Heap::empty_fixed_array())); 1452 ASSERT(!Heap::InNewSpace(Heap::empty_fixed_array()));
1457 return true; 1453 return true;
1458 } 1454 }
1459 1455
1460 1456
(...skipping 2933 matching lines...) Expand 10 before | Expand all | Expand 10 after
4394 void ExternalStringTable::TearDown() { 4390 void ExternalStringTable::TearDown() {
4395 new_space_strings_.Free(); 4391 new_space_strings_.Free();
4396 old_space_strings_.Free(); 4392 old_space_strings_.Free();
4397 } 4393 }
4398 4394
4399 4395
4400 List<Object*> ExternalStringTable::new_space_strings_; 4396 List<Object*> ExternalStringTable::new_space_strings_;
4401 List<Object*> ExternalStringTable::old_space_strings_; 4397 List<Object*> ExternalStringTable::old_space_strings_;
4402 4398
4403 } } // namespace v8::internal 4399 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698