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

Side by Side Diff: src/isolate.cc

Issue 180243010: Delete the simulator when we don't need it anymore (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 9 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/isolate.h ('k') | src/mips/simulator-mips.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 1456
1457 1457
1458 Isolate::ThreadDataTable::~ThreadDataTable() { 1458 Isolate::ThreadDataTable::~ThreadDataTable() {
1459 // TODO(svenpanne) The assertion below would fire if an embedder does not 1459 // TODO(svenpanne) The assertion below would fire if an embedder does not
1460 // cleanly dispose all Isolates before disposing v8, so we are conservative 1460 // cleanly dispose all Isolates before disposing v8, so we are conservative
1461 // and leave it out for now. 1461 // and leave it out for now.
1462 // ASSERT_EQ(NULL, list_); 1462 // ASSERT_EQ(NULL, list_);
1463 } 1463 }
1464 1464
1465 1465
1466 Isolate::PerIsolateThreadData::~PerIsolateThreadData() {
1467 delete simulator_;
1468 }
1469
1470
1466 Isolate::PerIsolateThreadData* 1471 Isolate::PerIsolateThreadData*
1467 Isolate::ThreadDataTable::Lookup(Isolate* isolate, 1472 Isolate::ThreadDataTable::Lookup(Isolate* isolate,
1468 ThreadId thread_id) { 1473 ThreadId thread_id) {
1469 for (PerIsolateThreadData* data = list_; data != NULL; data = data->next_) { 1474 for (PerIsolateThreadData* data = list_; data != NULL; data = data->next_) {
1470 if (data->Matches(isolate, thread_id)) return data; 1475 if (data->Matches(isolate, thread_id)) return data;
1471 } 1476 }
1472 return NULL; 1477 return NULL;
1473 } 1478 }
1474 1479
1475 1480
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
2316 2321
2317 #ifdef DEBUG 2322 #ifdef DEBUG
2318 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2323 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2319 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2324 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2320 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2325 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2321 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2326 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2322 #undef ISOLATE_FIELD_OFFSET 2327 #undef ISOLATE_FIELD_OFFSET
2323 #endif 2328 #endif
2324 2329
2325 } } // namespace v8::internal 2330 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/mips/simulator-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698