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

Side by Side Diff: src/runtime.cc

Issue 7284004: Fix lint failure. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 11130 matching lines...) Expand 10 before | Expand all | Expand 10 after
11141 isolate->factory()->NewFunctionContext(Context::MIN_CONTEXT_SLOTS, 11141 isolate->factory()->NewFunctionContext(Context::MIN_CONTEXT_SLOTS,
11142 go_between); 11142 go_between);
11143 context->set_extension(*local_scope); 11143 context->set_extension(*local_scope);
11144 // Copy any with contexts present and chain them in front of this context. 11144 // Copy any with contexts present and chain them in front of this context.
11145 Handle<Context> frame_context(Context::cast(frame->context())); 11145 Handle<Context> frame_context(Context::cast(frame->context()));
11146 Handle<Context> function_context(frame_context->declaration_context()); 11146 Handle<Context> function_context(frame_context->declaration_context());
11147 context = CopyWithContextChain(isolate, go_between, frame_context, context); 11147 context = CopyWithContextChain(isolate, go_between, frame_context, context);
11148 11148
11149 if (additional_context->IsJSObject()) { 11149 if (additional_context->IsJSObject()) {
11150 Handle<JSObject> extension = Handle<JSObject>::cast(additional_context); 11150 Handle<JSObject> extension = Handle<JSObject>::cast(additional_context);
11151 context = isolate->factory()->NewWithContext(go_between, context, extension) ; 11151 context =
11152 isolate->factory()->NewWithContext(go_between, context, extension);
11152 } 11153 }
11153 11154
11154 // Wrap the evaluation statement in a new function compiled in the newly 11155 // Wrap the evaluation statement in a new function compiled in the newly
11155 // created context. The function has one parameter which has to be called 11156 // created context. The function has one parameter which has to be called
11156 // 'arguments'. This it to have access to what would have been 'arguments' in 11157 // 'arguments'. This it to have access to what would have been 'arguments' in
11157 // the function being debugged. 11158 // the function being debugged.
11158 // function(arguments,__source__) {return eval(__source__);} 11159 // function(arguments,__source__) {return eval(__source__);}
11159 11160
11160 Handle<String> function_source = 11161 Handle<String> function_source =
11161 isolate->factory()->NewStringFromAscii( 11162 isolate->factory()->NewStringFromAscii(
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after
12503 } else { 12504 } else {
12504 // Handle last resort GC and make sure to allow future allocations 12505 // Handle last resort GC and make sure to allow future allocations
12505 // to grow the heap without causing GCs (if possible). 12506 // to grow the heap without causing GCs (if possible).
12506 isolate->counters()->gc_last_resort_from_js()->Increment(); 12507 isolate->counters()->gc_last_resort_from_js()->Increment();
12507 isolate->heap()->CollectAllGarbage(false); 12508 isolate->heap()->CollectAllGarbage(false);
12508 } 12509 }
12509 } 12510 }
12510 12511
12511 12512
12512 } } // namespace v8::internal 12513 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698