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

Side by Side Diff: src/compiler.cc

Issue 11366132: Rollback of r12868, r12849 in trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/bootstrapper.cc ('k') | src/contexts.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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 #endif 425 #endif
426 426
427 427
428 static Handle<SharedFunctionInfo> MakeFunctionInfo(CompilationInfo* info) { 428 static Handle<SharedFunctionInfo> MakeFunctionInfo(CompilationInfo* info) {
429 Isolate* isolate = info->isolate(); 429 Isolate* isolate = info->isolate();
430 ZoneScope zone_scope(info->zone(), DELETE_ON_EXIT); 430 ZoneScope zone_scope(info->zone(), DELETE_ON_EXIT);
431 PostponeInterruptsScope postpone(isolate); 431 PostponeInterruptsScope postpone(isolate);
432 432
433 ASSERT(!isolate->native_context().is_null()); 433 ASSERT(!isolate->native_context().is_null());
434 Handle<Script> script = info->script(); 434 Handle<Script> script = info->script();
435 // TODO(svenpanne) Obscure place for this, perhaps move to OnBeforeCompile? 435 script->set_context_data((*isolate->native_context())->data());
436 FixedArray* array = isolate->native_context()->embedder_data();
437 script->set_context_data(array->get(0));
438 436
439 #ifdef ENABLE_DEBUGGER_SUPPORT 437 #ifdef ENABLE_DEBUGGER_SUPPORT
440 if (info->is_eval()) { 438 if (info->is_eval()) {
441 Script::CompilationType compilation_type = Script::COMPILATION_TYPE_EVAL; 439 Script::CompilationType compilation_type = Script::COMPILATION_TYPE_EVAL;
442 script->set_compilation_type(Smi::FromInt(compilation_type)); 440 script->set_compilation_type(Smi::FromInt(compilation_type));
443 // For eval scripts add information on the function from which eval was 441 // For eval scripts add information on the function from which eval was
444 // called. 442 // called.
445 if (info->is_eval()) { 443 if (info->is_eval()) {
446 StackTraceFrameIterator it(isolate); 444 StackTraceFrameIterator it(isolate);
447 if (!it.done()) { 445 if (!it.done()) {
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 } 1047 }
1050 } 1048 }
1051 1049
1052 GDBJIT(AddCode(Handle<String>(shared->DebugName()), 1050 GDBJIT(AddCode(Handle<String>(shared->DebugName()),
1053 Handle<Script>(info->script()), 1051 Handle<Script>(info->script()),
1054 Handle<Code>(info->code()), 1052 Handle<Code>(info->code()),
1055 info)); 1053 info));
1056 } 1054 }
1057 1055
1058 } } // namespace v8::internal 1056 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698