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

Side by Side Diff: src/isolate.cc

Issue 10116024: Make static API getters inlineable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add isolate state check to inlined versions. Created 8 years, 8 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') | 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 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 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after
1847 runtime_profiler_->SetUp(); 1847 runtime_profiler_->SetUp();
1848 1848
1849 // If we are deserializing, log non-function code objects and compiled 1849 // If we are deserializing, log non-function code objects and compiled
1850 // functions found in the snapshot. 1850 // functions found in the snapshot.
1851 if (des != NULL && (FLAG_log_code || FLAG_ll_prof)) { 1851 if (des != NULL && (FLAG_log_code || FLAG_ll_prof)) {
1852 HandleScope scope; 1852 HandleScope scope;
1853 LOG(this, LogCodeObjects()); 1853 LOG(this, LogCodeObjects());
1854 LOG(this, LogCompiledFunctions()); 1854 LOG(this, LogCompiledFunctions());
1855 } 1855 }
1856 1856
1857 CHECK(OFFSET_OF(Isolate, state_) == Internals::kIsolateStateOffset);
1858 CHECK(OFFSET_OF(Isolate, heap_.roots_) == Internals::kIsolateRootsOffset);
1859
1857 state_ = INITIALIZED; 1860 state_ = INITIALIZED;
1858 time_millis_at_init_ = OS::TimeCurrentMillis(); 1861 time_millis_at_init_ = OS::TimeCurrentMillis();
1859 return true; 1862 return true;
1860 } 1863 }
1861 1864
1862 1865
1863 // Initialized lazily to allow early 1866 // Initialized lazily to allow early
1864 // v8::V8::SetAddHistogramSampleFunction calls. 1867 // v8::V8::SetAddHistogramSampleFunction calls.
1865 StatsTable* Isolate::stats_table() { 1868 StatsTable* Isolate::stats_table() {
1866 if (stats_table_ == NULL) { 1869 if (stats_table_ == NULL) {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
1941 1944
1942 #ifdef DEBUG 1945 #ifdef DEBUG
1943 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 1946 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
1944 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 1947 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
1945 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 1948 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
1946 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 1949 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
1947 #undef ISOLATE_FIELD_OFFSET 1950 #undef ISOLATE_FIELD_OFFSET
1948 #endif 1951 #endif
1949 1952
1950 } } // namespace v8::internal 1953 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698