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

Side by Side Diff: src/heap.cc

Issue 543207: Removing redundant stub for runtime native calls. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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/full-codegen.cc ('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 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after
1492 1492
1493 #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP 1493 #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP
1494 void Heap::CreateRegExpCEntryStub() { 1494 void Heap::CreateRegExpCEntryStub() {
1495 RegExpCEntryStub stub; 1495 RegExpCEntryStub stub;
1496 set_re_c_entry_code(*stub.GetCode()); 1496 set_re_c_entry_code(*stub.GetCode());
1497 } 1497 }
1498 #endif 1498 #endif
1499 1499
1500 1500
1501 void Heap::CreateCEntryDebugBreakStub() { 1501 void Heap::CreateCEntryDebugBreakStub() {
1502 CEntryDebugBreakStub stub; 1502 DebugerStatementStub stub;
1503 set_c_entry_debug_break_code(*stub.GetCode()); 1503 set_c_entry_debug_break_code(*stub.GetCode());
1504 } 1504 }
1505 1505
1506 1506
1507 void Heap::CreateJSEntryStub() { 1507 void Heap::CreateJSEntryStub() {
1508 JSEntryStub stub; 1508 JSEntryStub stub;
1509 set_js_entry_code(*stub.GetCode()); 1509 set_js_entry_code(*stub.GetCode());
1510 } 1510 }
1511 1511
1512 1512
1513 void Heap::CreateJSConstructEntryStub() { 1513 void Heap::CreateJSConstructEntryStub() {
1514 JSConstructEntryStub stub; 1514 JSConstructEntryStub stub;
1515 set_js_construct_entry_code(*stub.GetCode()); 1515 set_js_construct_entry_code(*stub.GetCode());
1516 } 1516 }
1517 1517
1518 1518
1519 void Heap::CreateFixedStubs() { 1519 void Heap::CreateFixedStubs() {
1520 // Here we create roots for fixed stubs. They are needed at GC 1520 // Here we create roots for fixed stubs. They are needed at GC
1521 // for cooking and uncooking (check out frames.cc). 1521 // for cooking and uncooking (check out frames.cc).
1522 // The eliminates the need for doing dictionary lookup in the 1522 // The eliminates the need for doing dictionary lookup in the
1523 // stub cache for these stubs. 1523 // stub cache for these stubs.
1524 HandleScope scope; 1524 HandleScope scope;
1525 // gcc-4.4 has problem generating correct code of following snippet: 1525 // gcc-4.4 has problem generating correct code of following snippet:
1526 // { CEntryStub stub; 1526 // { CEntryStub stub;
1527 // c_entry_code_ = *stub.GetCode(); 1527 // c_entry_code_ = *stub.GetCode();
1528 // } 1528 // }
1529 // { CEntryDebugBreakStub stub; 1529 // { DebugerStatementStub stub;
1530 // c_entry_debug_break_code_ = *stub.GetCode(); 1530 // c_entry_debug_break_code_ = *stub.GetCode();
1531 // } 1531 // }
1532 // To workaround the problem, make separate functions without inlining. 1532 // To workaround the problem, make separate functions without inlining.
1533 Heap::CreateCEntryStub(); 1533 Heap::CreateCEntryStub();
1534 Heap::CreateCEntryDebugBreakStub(); 1534 Heap::CreateCEntryDebugBreakStub();
1535 Heap::CreateJSEntryStub(); 1535 Heap::CreateJSEntryStub();
1536 Heap::CreateJSConstructEntryStub(); 1536 Heap::CreateJSConstructEntryStub();
1537 #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP 1537 #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP
1538 Heap::CreateRegExpCEntryStub(); 1538 Heap::CreateRegExpCEntryStub();
1539 #endif 1539 #endif
(...skipping 2682 matching lines...) Expand 10 before | Expand all | Expand 10 after
4222 void ExternalStringTable::TearDown() { 4222 void ExternalStringTable::TearDown() {
4223 new_space_strings_.Free(); 4223 new_space_strings_.Free();
4224 old_space_strings_.Free(); 4224 old_space_strings_.Free();
4225 } 4225 }
4226 4226
4227 4227
4228 List<Object*> ExternalStringTable::new_space_strings_; 4228 List<Object*> ExternalStringTable::new_space_strings_;
4229 List<Object*> ExternalStringTable::old_space_strings_; 4229 List<Object*> ExternalStringTable::old_space_strings_;
4230 4230
4231 } } // namespace v8::internal 4231 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698