OLD | NEW |
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 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1491 | 1491 |
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 #ifdef ENABLE_DEBUGGER_SUPPORT | |
1502 void Heap::CreateCEntryDebugBreakStub() { | |
1503 DebuggerStatementStub stub; | |
1504 set_debugger_statement_code(*stub.GetCode()); | |
1505 } | |
1506 #endif | |
1507 | |
1508 | |
1509 void Heap::CreateJSEntryStub() { | 1501 void Heap::CreateJSEntryStub() { |
1510 JSEntryStub stub; | 1502 JSEntryStub stub; |
1511 set_js_entry_code(*stub.GetCode()); | 1503 set_js_entry_code(*stub.GetCode()); |
1512 } | 1504 } |
1513 | 1505 |
1514 | 1506 |
1515 void Heap::CreateJSConstructEntryStub() { | 1507 void Heap::CreateJSConstructEntryStub() { |
1516 JSConstructEntryStub stub; | 1508 JSConstructEntryStub stub; |
1517 set_js_construct_entry_code(*stub.GetCode()); | 1509 set_js_construct_entry_code(*stub.GetCode()); |
1518 } | 1510 } |
1519 | 1511 |
1520 | 1512 |
1521 void Heap::CreateFixedStubs() { | 1513 void Heap::CreateFixedStubs() { |
1522 // Here we create roots for fixed stubs. They are needed at GC | 1514 // Here we create roots for fixed stubs. They are needed at GC |
1523 // for cooking and uncooking (check out frames.cc). | 1515 // for cooking and uncooking (check out frames.cc). |
1524 // The eliminates the need for doing dictionary lookup in the | 1516 // The eliminates the need for doing dictionary lookup in the |
1525 // stub cache for these stubs. | 1517 // stub cache for these stubs. |
1526 HandleScope scope; | 1518 HandleScope scope; |
1527 // gcc-4.4 has problem generating correct code of following snippet: | 1519 // gcc-4.4 has problem generating correct code of following snippet: |
1528 // { CEntryStub stub; | 1520 // { CEntryStub stub; |
1529 // c_entry_code_ = *stub.GetCode(); | 1521 // c_entry_code_ = *stub.GetCode(); |
1530 // } | 1522 // } |
1531 // { DebuggerStatementStub stub; | 1523 // { DebuggerStatementStub stub; |
1532 // debugger_statement_code_ = *stub.GetCode(); | 1524 // debugger_statement_code_ = *stub.GetCode(); |
1533 // } | 1525 // } |
1534 // To workaround the problem, make separate functions without inlining. | 1526 // To workaround the problem, make separate functions without inlining. |
1535 Heap::CreateCEntryStub(); | 1527 Heap::CreateCEntryStub(); |
1536 #ifdef ENABLE_DEBUGGER_SUPPORT | |
1537 Heap::CreateCEntryDebugBreakStub(); | |
1538 #endif | |
1539 Heap::CreateJSEntryStub(); | 1528 Heap::CreateJSEntryStub(); |
1540 Heap::CreateJSConstructEntryStub(); | 1529 Heap::CreateJSConstructEntryStub(); |
1541 #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP | 1530 #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP |
1542 Heap::CreateRegExpCEntryStub(); | 1531 Heap::CreateRegExpCEntryStub(); |
1543 #endif | 1532 #endif |
1544 } | 1533 } |
1545 | 1534 |
1546 | 1535 |
1547 bool Heap::CreateInitialObjects() { | 1536 bool Heap::CreateInitialObjects() { |
1548 Object* obj; | 1537 Object* obj; |
(...skipping 2679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4228 void ExternalStringTable::TearDown() { | 4217 void ExternalStringTable::TearDown() { |
4229 new_space_strings_.Free(); | 4218 new_space_strings_.Free(); |
4230 old_space_strings_.Free(); | 4219 old_space_strings_.Free(); |
4231 } | 4220 } |
4232 | 4221 |
4233 | 4222 |
4234 List<Object*> ExternalStringTable::new_space_strings_; | 4223 List<Object*> ExternalStringTable::new_space_strings_; |
4235 List<Object*> ExternalStringTable::old_space_strings_; | 4224 List<Object*> ExternalStringTable::old_space_strings_; |
4236 | 4225 |
4237 } } // namespace v8::internal | 4226 } } // namespace v8::internal |
OLD | NEW |