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