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

Side by Side Diff: src/runtime.cc

Issue 227043009: Add missing runtime assert for LiveEdit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « 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 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 13538 matching lines...) Expand 10 before | Expand all | Expand 10 after
13549 // to script source change. Text change is described in second parameter as 13549 // to script source change. Text change is described in second parameter as
13550 // array of groups of 3 numbers: 13550 // array of groups of 3 numbers:
13551 // (change_begin, change_end, change_end_new_position). 13551 // (change_begin, change_end, change_end_new_position).
13552 // Each group describes a change in text; groups are sorted by change_begin. 13552 // Each group describes a change in text; groups are sorted by change_begin.
13553 RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditPatchFunctionPositions) { 13553 RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditPatchFunctionPositions) {
13554 HandleScope scope(isolate); 13554 HandleScope scope(isolate);
13555 CHECK(isolate->debugger()->live_edit_enabled()); 13555 CHECK(isolate->debugger()->live_edit_enabled());
13556 ASSERT(args.length() == 2); 13556 ASSERT(args.length() == 2);
13557 CONVERT_ARG_HANDLE_CHECKED(JSArray, shared_array, 0); 13557 CONVERT_ARG_HANDLE_CHECKED(JSArray, shared_array, 0);
13558 CONVERT_ARG_HANDLE_CHECKED(JSArray, position_change_array, 1); 13558 CONVERT_ARG_HANDLE_CHECKED(JSArray, position_change_array, 1);
13559 RUNTIME_ASSERT(SharedInfoWrapper::IsInstance(shared_array))
13559 13560
13560 LiveEdit::PatchFunctionPositions(shared_array, position_change_array); 13561 LiveEdit::PatchFunctionPositions(shared_array, position_change_array);
13561 return isolate->heap()->undefined_value(); 13562 return isolate->heap()->undefined_value();
13562 } 13563 }
13563 13564
13564 13565
13565 // For array of SharedFunctionInfo's (each wrapped in JSValue) 13566 // For array of SharedFunctionInfo's (each wrapped in JSValue)
13566 // checks that none of them have activations on stacks (of any thread). 13567 // checks that none of them have activations on stacks (of any thread).
13567 // Returns array of the same length with corresponding results of 13568 // Returns array of the same length with corresponding results of
13568 // LiveEdit::FunctionPatchabilityStatus type. 13569 // LiveEdit::FunctionPatchabilityStatus type.
(...skipping 1691 matching lines...) Expand 10 before | Expand all | Expand 10 after
15260 } 15261 }
15261 } 15262 }
15262 15263
15263 15264
15264 void Runtime::OutOfMemory() { 15265 void Runtime::OutOfMemory() {
15265 Heap::FatalProcessOutOfMemory("CALL_AND_RETRY_LAST", true); 15266 Heap::FatalProcessOutOfMemory("CALL_AND_RETRY_LAST", true);
15266 UNREACHABLE(); 15267 UNREACHABLE();
15267 } 15268 }
15268 15269
15269 } } // namespace v8::internal 15270 } } // 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