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

Side by Side Diff: src/v8.cc

Issue 2715004: [Isolates]... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Address comments/make StackGuard::ThreadLocal::Initialize/Clear side-effects visible Created 10 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
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 bool V8::Initialize(Deserializer* des) { 47 bool V8::Initialize(Deserializer* des) {
48 if (has_been_disposed_ || has_fatal_error_) return false; 48 if (has_been_disposed_ || has_fatal_error_) return false;
49 if (IsRunning()) return true; 49 if (IsRunning()) return true;
50 50
51 is_running_ = true; 51 is_running_ = true;
52 has_been_setup_ = true; 52 has_been_setup_ = true;
53 has_fatal_error_ = false; 53 has_fatal_error_ = false;
54 has_been_disposed_ = false; 54 has_been_disposed_ = false;
55 55
56 Isolate::InitOnce();
57 return (Isolate::Create(des) != NULL); 56 return (Isolate::Create(des) != NULL);
58 } 57 }
59 58
60 59
61 void V8::SetFatalError() { 60 void V8::SetFatalError() {
62 is_running_ = false; 61 is_running_ = false;
63 has_fatal_error_ = true; 62 has_fatal_error_ = true;
64 } 63 }
65 64
66 65
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)). 144 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)).
146 const double binary_million = 1048576.0; 145 const double binary_million = 1048576.0;
147 r->double_value = binary_million; 146 r->double_value = binary_million;
148 r->uint64_t_value |= random_bits; 147 r->uint64_t_value |= random_bits;
149 r->double_value -= binary_million; 148 r->double_value -= binary_million;
150 149
151 return heap_number; 150 return heap_number;
152 } 151 }
153 152
154 } } // namespace v8::internal 153 } } // namespace v8::internal
OLDNEW
« src/execution.cc ('K') | « src/top.cc ('k') | src/v8threads.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698