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

Side by Side Diff: src/v8.cc

Issue 5026005: Move static scanner fields to scanner-base.h (Closed)
Patch Set: Created 10 years, 1 month 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
« no previous file with comments | « src/scanner-base.cc ('k') | test/cctest/test-api.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 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 26 matching lines...) Expand all
37 #include "log.h" 37 #include "log.h"
38 38
39 namespace v8 { 39 namespace v8 {
40 namespace internal { 40 namespace internal {
41 41
42 bool V8::is_running_ = false; 42 bool V8::is_running_ = false;
43 bool V8::has_been_setup_ = false; 43 bool V8::has_been_setup_ = false;
44 bool V8::has_been_disposed_ = false; 44 bool V8::has_been_disposed_ = false;
45 bool V8::has_fatal_error_ = false; 45 bool V8::has_fatal_error_ = false;
46 46
47
47 bool V8::Initialize(Deserializer* des) { 48 bool V8::Initialize(Deserializer* des) {
48 bool create_heap_objects = des == NULL; 49 bool create_heap_objects = des == NULL;
49 if (has_been_disposed_ || has_fatal_error_) return false; 50 if (has_been_disposed_ || has_fatal_error_) return false;
50 if (IsRunning()) return true; 51 if (IsRunning()) return true;
51 52
52 is_running_ = true; 53 is_running_ = true;
53 has_been_setup_ = true; 54 has_been_setup_ = true;
54 has_fatal_error_ = false; 55 has_fatal_error_ = false;
55 has_been_disposed_ = false; 56 has_been_disposed_ = false;
56 #ifdef DEBUG 57 #ifdef DEBUG
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)). 224 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)).
224 const double binary_million = 1048576.0; 225 const double binary_million = 1048576.0;
225 r->double_value = binary_million; 226 r->double_value = binary_million;
226 r->uint64_t_value |= random_bits; 227 r->uint64_t_value |= random_bits;
227 r->double_value -= binary_million; 228 r->double_value -= binary_million;
228 229
229 return heap_number; 230 return heap_number;
230 } 231 }
231 232
232 } } // namespace v8::internal 233 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/scanner-base.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698