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

Side by Side Diff: src/liveedit.cc

Issue 185533014: Remove Script::SetData and the script_data parameter from Script::(Compile|New). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 6 years, 9 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/heap-snapshot-generator.cc ('k') | src/objects.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 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 1550
1551 static Handle<Script> CreateScriptCopy(Handle<Script> original) { 1551 static Handle<Script> CreateScriptCopy(Handle<Script> original) {
1552 Isolate* isolate = original->GetIsolate(); 1552 Isolate* isolate = original->GetIsolate();
1553 1553
1554 Handle<String> original_source(String::cast(original->source())); 1554 Handle<String> original_source(String::cast(original->source()));
1555 Handle<Script> copy = isolate->factory()->NewScript(original_source); 1555 Handle<Script> copy = isolate->factory()->NewScript(original_source);
1556 1556
1557 copy->set_name(original->name()); 1557 copy->set_name(original->name());
1558 copy->set_line_offset(original->line_offset()); 1558 copy->set_line_offset(original->line_offset());
1559 copy->set_column_offset(original->column_offset()); 1559 copy->set_column_offset(original->column_offset());
1560 copy->set_data(original->data());
1561 copy->set_type(original->type()); 1560 copy->set_type(original->type());
1562 copy->set_context_data(original->context_data()); 1561 copy->set_context_data(original->context_data());
1563 copy->set_eval_from_shared(original->eval_from_shared()); 1562 copy->set_eval_from_shared(original->eval_from_shared());
1564 copy->set_eval_from_instructions_offset( 1563 copy->set_eval_from_instructions_offset(
1565 original->eval_from_instructions_offset()); 1564 original->eval_from_instructions_offset());
1566 1565
1567 // Copy all the flags, but clear compilation state. 1566 // Copy all the flags, but clear compilation state.
1568 copy->set_flags(original->flags()); 1567 copy->set_flags(original->flags());
1569 copy->set_compilation_state(Script::COMPILATION_STATE_INITIAL); 1568 copy->set_compilation_state(Script::COMPILATION_STATE_INITIAL);
1570 1569
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
2131 2130
2132 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { 2131 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) {
2133 return false; 2132 return false;
2134 } 2133 }
2135 2134
2136 #endif // ENABLE_DEBUGGER_SUPPORT 2135 #endif // ENABLE_DEBUGGER_SUPPORT
2137 2136
2138 2137
2139 2138
2140 } } // namespace v8::internal 2139 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap-snapshot-generator.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698