| 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 23 matching lines...) Expand all Loading... |
| 34 #include "compilation-cache.h" | 34 #include "compilation-cache.h" |
| 35 #include "debug.h" | 35 #include "debug.h" |
| 36 #include "heap-profiler.h" | 36 #include "heap-profiler.h" |
| 37 #include "global-handles.h" | 37 #include "global-handles.h" |
| 38 #include "mark-compact.h" | 38 #include "mark-compact.h" |
| 39 #include "natives.h" | 39 #include "natives.h" |
| 40 #include "scanner.h" | 40 #include "scanner.h" |
| 41 #include "scopeinfo.h" | 41 #include "scopeinfo.h" |
| 42 #include "snapshot.h" | 42 #include "snapshot.h" |
| 43 #include "v8threads.h" | 43 #include "v8threads.h" |
| 44 #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP | 44 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP |
| 45 #include "regexp-macro-assembler.h" | 45 #include "regexp-macro-assembler.h" |
| 46 #include "arm/regexp-macro-assembler-arm.h" | 46 #include "arm/regexp-macro-assembler-arm.h" |
| 47 #endif | 47 #endif |
| 48 | 48 |
| 49 | 49 |
| 50 namespace v8 { | 50 namespace v8 { |
| 51 namespace internal { | 51 namespace internal { |
| 52 | 52 |
| 53 | 53 |
| 54 String* Heap::hidden_symbol_; | 54 String* Heap::hidden_symbol_; |
| (...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1525 return true; | 1525 return true; |
| 1526 } | 1526 } |
| 1527 | 1527 |
| 1528 | 1528 |
| 1529 void Heap::CreateCEntryStub() { | 1529 void Heap::CreateCEntryStub() { |
| 1530 CEntryStub stub(1); | 1530 CEntryStub stub(1); |
| 1531 set_c_entry_code(*stub.GetCode()); | 1531 set_c_entry_code(*stub.GetCode()); |
| 1532 } | 1532 } |
| 1533 | 1533 |
| 1534 | 1534 |
| 1535 #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP | 1535 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP |
| 1536 void Heap::CreateRegExpCEntryStub() { | 1536 void Heap::CreateRegExpCEntryStub() { |
| 1537 RegExpCEntryStub stub; | 1537 RegExpCEntryStub stub; |
| 1538 set_re_c_entry_code(*stub.GetCode()); | 1538 set_re_c_entry_code(*stub.GetCode()); |
| 1539 } | 1539 } |
| 1540 #endif | 1540 #endif |
| 1541 | 1541 |
| 1542 | 1542 |
| 1543 void Heap::CreateJSEntryStub() { | 1543 void Heap::CreateJSEntryStub() { |
| 1544 JSEntryStub stub; | 1544 JSEntryStub stub; |
| 1545 set_js_entry_code(*stub.GetCode()); | 1545 set_js_entry_code(*stub.GetCode()); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1562 // { CEntryStub stub; | 1562 // { CEntryStub stub; |
| 1563 // c_entry_code_ = *stub.GetCode(); | 1563 // c_entry_code_ = *stub.GetCode(); |
| 1564 // } | 1564 // } |
| 1565 // { DebuggerStatementStub stub; | 1565 // { DebuggerStatementStub stub; |
| 1566 // debugger_statement_code_ = *stub.GetCode(); | 1566 // debugger_statement_code_ = *stub.GetCode(); |
| 1567 // } | 1567 // } |
| 1568 // To workaround the problem, make separate functions without inlining. | 1568 // To workaround the problem, make separate functions without inlining. |
| 1569 Heap::CreateCEntryStub(); | 1569 Heap::CreateCEntryStub(); |
| 1570 Heap::CreateJSEntryStub(); | 1570 Heap::CreateJSEntryStub(); |
| 1571 Heap::CreateJSConstructEntryStub(); | 1571 Heap::CreateJSConstructEntryStub(); |
| 1572 #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP | 1572 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP |
| 1573 Heap::CreateRegExpCEntryStub(); | 1573 Heap::CreateRegExpCEntryStub(); |
| 1574 #endif | 1574 #endif |
| 1575 } | 1575 } |
| 1576 | 1576 |
| 1577 | 1577 |
| 1578 bool Heap::CreateInitialObjects() { | 1578 bool Heap::CreateInitialObjects() { |
| 1579 Object* obj; | 1579 Object* obj; |
| 1580 | 1580 |
| 1581 // The -0 value must be set before NumberFromDouble works. | 1581 // The -0 value must be set before NumberFromDouble works. |
| 1582 obj = AllocateHeapNumber(-0.0, TENURED); | 1582 obj = AllocateHeapNumber(-0.0, TENURED); |
| (...skipping 2816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4399 void ExternalStringTable::TearDown() { | 4399 void ExternalStringTable::TearDown() { |
| 4400 new_space_strings_.Free(); | 4400 new_space_strings_.Free(); |
| 4401 old_space_strings_.Free(); | 4401 old_space_strings_.Free(); |
| 4402 } | 4402 } |
| 4403 | 4403 |
| 4404 | 4404 |
| 4405 List<Object*> ExternalStringTable::new_space_strings_; | 4405 List<Object*> ExternalStringTable::new_space_strings_; |
| 4406 List<Object*> ExternalStringTable::old_space_strings_; | 4406 List<Object*> ExternalStringTable::old_space_strings_; |
| 4407 | 4407 |
| 4408 } } // namespace v8::internal | 4408 } } // namespace v8::internal |
| OLD | NEW |