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

Side by Side Diff: src/bootstrapper.cc

Issue 605030: Fix the build after previous commit. (Closed)
Patch Set: Created 10 years, 10 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
« no previous file with comments | « no previous file | src/debug.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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 bool use_runtime_context) { 817 bool use_runtime_context) {
818 HandleScope scope; 818 HandleScope scope;
819 Handle<JSFunction> boilerplate; 819 Handle<JSFunction> boilerplate;
820 820
821 // If we can't find the function in the cache, we compile a new 821 // If we can't find the function in the cache, we compile a new
822 // function and insert it into the cache. 822 // function and insert it into the cache.
823 if (!cache->Lookup(name, &boilerplate)) { 823 if (!cache->Lookup(name, &boilerplate)) {
824 ASSERT(source->IsAsciiRepresentation()); 824 ASSERT(source->IsAsciiRepresentation());
825 Handle<String> script_name = Factory::NewStringFromUtf8(name); 825 Handle<String> script_name = Factory::NewStringFromUtf8(name);
826 boilerplate = 826 boilerplate =
827 Compiler::Compile(source, script_name, 0, 0, extension, NULL); 827 Compiler::Compile(source, script_name, 0, 0, extension, NULL,
828 Handle<String>::null());
828 if (boilerplate.is_null()) return false; 829 if (boilerplate.is_null()) return false;
829 cache->Add(name, boilerplate); 830 cache->Add(name, boilerplate);
830 } 831 }
831 832
832 // Setup the function context. Conceptually, we should clone the 833 // Setup the function context. Conceptually, we should clone the
833 // function before overwriting the context but since we're in a 834 // function before overwriting the context but since we're in a
834 // single-threaded environment it is not strictly necessary. 835 // single-threaded environment it is not strictly necessary.
835 ASSERT(Top::context()->IsGlobalContext()); 836 ASSERT(Top::context()->IsGlobalContext());
836 Handle<Context> context = 837 Handle<Context> context =
837 Handle<Context>(use_runtime_context 838 Handle<Context>(use_runtime_context
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
1575 } 1576 }
1576 1577
1577 1578
1578 // Restore statics that are thread local. 1579 // Restore statics that are thread local.
1579 char* Genesis::RestoreState(char* from) { 1580 char* Genesis::RestoreState(char* from) {
1580 current_ = *reinterpret_cast<Genesis**>(from); 1581 current_ = *reinterpret_cast<Genesis**>(from);
1581 return from + sizeof(current_); 1582 return from + sizeof(current_);
1582 } 1583 }
1583 1584
1584 } } // namespace v8::internal 1585 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698