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

Side by Side Diff: src/api.cc

Issue 104583003: [platform] Implement a worker pool (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 7 years 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 | « no previous file | src/default-platform.h » ('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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 old_gen_size, 623 old_gen_size,
624 max_executable_size); 624 max_executable_size);
625 if (!result) return false; 625 if (!result) return false;
626 } 626 }
627 if (constraints->stack_limit() != NULL) { 627 if (constraints->stack_limit() != NULL) {
628 uintptr_t limit = reinterpret_cast<uintptr_t>(constraints->stack_limit()); 628 uintptr_t limit = reinterpret_cast<uintptr_t>(constraints->stack_limit());
629 isolate->stack_guard()->SetStackLimit(limit); 629 isolate->stack_guard()->SetStackLimit(limit);
630 } 630 }
631 631
632 isolate->set_max_available_threads(constraints->max_available_threads()); 632 isolate->set_max_available_threads(constraints->max_available_threads());
633
Sven Panne 2013/12/10 11:35:53 Nit: Spurious change?
633 return true; 634 return true;
634 } 635 }
635 636
636 637
637 i::Object** V8::GlobalizeReference(i::Isolate* isolate, i::Object** obj) { 638 i::Object** V8::GlobalizeReference(i::Isolate* isolate, i::Object** obj) {
638 LOG_API(isolate, "Persistent::New"); 639 LOG_API(isolate, "Persistent::New");
639 i::Handle<i::Object> result = isolate->global_handles()->Create(*obj); 640 i::Handle<i::Object> result = isolate->global_handles()->Create(*obj);
640 #ifdef DEBUG 641 #ifdef DEBUG
641 (*obj)->Verify(); 642 (*obj)->Verify();
642 #endif // DEBUG 643 #endif // DEBUG
(...skipping 7136 matching lines...) Expand 10 before | Expand all | Expand 10 after
7779 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); 7780 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate());
7780 Address callback_address = 7781 Address callback_address =
7781 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 7782 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
7782 VMState<EXTERNAL> state(isolate); 7783 VMState<EXTERNAL> state(isolate);
7783 ExternalCallbackScope call_scope(isolate, callback_address); 7784 ExternalCallbackScope call_scope(isolate, callback_address);
7784 callback(info); 7785 callback(info);
7785 } 7786 }
7786 7787
7787 7788
7788 } } // namespace v8::internal 7789 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/default-platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698