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

Side by Side Diff: src/heap.cc

Issue 568017: DebugBreak shouldn't be used when ENABLE_DEBUGGER_SUPPORT isn't defined. (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/codegen.cc ('k') | no next file » | 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 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698