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

Side by Side Diff: src/isolate.cc

Issue 297303004: Revert 21502 - "Move OS::MemCopy and OS::MemMove out of platform to utils" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/ia32/deoptimizer-ia32.cc ('k') | src/jsregexp.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "v8.h" 7 #include "v8.h"
8 8
9 #include "ast.h" 9 #include "ast.h"
10 #include "bootstrapper.h" 10 #include "bootstrapper.h"
(...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 } 1336 }
1337 } 1337 }
1338 if (it.done()) return Handle<Context>::null(); 1338 if (it.done()) return Handle<Context>::null();
1339 JavaScriptFrame* frame = it.frame(); 1339 JavaScriptFrame* frame = it.frame();
1340 Context* context = Context::cast(frame->context()); 1340 Context* context = Context::cast(frame->context());
1341 return Handle<Context>(context->native_context()); 1341 return Handle<Context>(context->native_context());
1342 } 1342 }
1343 1343
1344 1344
1345 char* Isolate::ArchiveThread(char* to) { 1345 char* Isolate::ArchiveThread(char* to) {
1346 MemCopy(to, reinterpret_cast<char*>(thread_local_top()), 1346 OS::MemCopy(to, reinterpret_cast<char*>(thread_local_top()),
1347 sizeof(ThreadLocalTop)); 1347 sizeof(ThreadLocalTop));
1348 InitializeThreadLocal(); 1348 InitializeThreadLocal();
1349 clear_pending_exception(); 1349 clear_pending_exception();
1350 clear_pending_message(); 1350 clear_pending_message();
1351 clear_scheduled_exception(); 1351 clear_scheduled_exception();
1352 return to + sizeof(ThreadLocalTop); 1352 return to + sizeof(ThreadLocalTop);
1353 } 1353 }
1354 1354
1355 1355
1356 char* Isolate::RestoreThread(char* from) { 1356 char* Isolate::RestoreThread(char* from) {
1357 MemCopy(reinterpret_cast<char*>(thread_local_top()), from, 1357 OS::MemCopy(reinterpret_cast<char*>(thread_local_top()), from,
1358 sizeof(ThreadLocalTop)); 1358 sizeof(ThreadLocalTop));
1359 // This might be just paranoia, but it seems to be needed in case a 1359 // This might be just paranoia, but it seems to be needed in case a
1360 // thread_local_top_ is restored on a separate OS thread. 1360 // thread_local_top_ is restored on a separate OS thread.
1361 #ifdef USE_SIMULATOR 1361 #ifdef USE_SIMULATOR
1362 thread_local_top()->simulator_ = Simulator::current(this); 1362 thread_local_top()->simulator_ = Simulator::current(this);
1363 #endif 1363 #endif
1364 ASSERT(context() == NULL || context()->IsContext()); 1364 ASSERT(context() == NULL || context()->IsContext());
1365 return from + sizeof(ThreadLocalTop); 1365 return from + sizeof(ThreadLocalTop);
1366 } 1366 }
1367 1367
1368 1368
1369 Isolate::ThreadDataTable::ThreadDataTable() 1369 Isolate::ThreadDataTable::ThreadDataTable()
1370 : list_(NULL) { 1370 : list_(NULL) {
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
2308 Execution::Call(this, microtask, factory()->undefined_value(), 2308 Execution::Call(this, microtask, factory()->undefined_value(),
2309 0, NULL).Check(); 2309 0, NULL).Check();
2310 } 2310 }
2311 } 2311 }
2312 2312
2313 handle_scope_implementer()->DecrementCallDepth(); 2313 handle_scope_implementer()->DecrementCallDepth();
2314 } 2314 }
2315 2315
2316 2316
2317 } } // namespace v8::internal 2317 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/deoptimizer-ia32.cc ('k') | src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698