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

Side by Side Diff: src/liveedit.cc

Issue 390833003: Remove PropertyAttributes from SetProperty (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « src/isolate.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 #include "src/v8.h" 6 #include "src/v8.h"
7 7
8 #include "src/liveedit.h" 8 #include "src/liveedit.h"
9 9
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 STATIC_ASCII_VECTOR("startPosition")); 878 STATIC_ASCII_VECTOR("startPosition"));
879 Handle<String> end_pos_key = factory->InternalizeOneByteString( 879 Handle<String> end_pos_key = factory->InternalizeOneByteString(
880 STATIC_ASCII_VECTOR("endPosition")); 880 STATIC_ASCII_VECTOR("endPosition"));
881 Handle<String> script_obj_key = factory->InternalizeOneByteString( 881 Handle<String> script_obj_key = factory->InternalizeOneByteString(
882 STATIC_ASCII_VECTOR("scriptObject")); 882 STATIC_ASCII_VECTOR("scriptObject"));
883 Handle<Smi> start_pos( 883 Handle<Smi> start_pos(
884 Smi::FromInt(message_location.start_pos()), isolate); 884 Smi::FromInt(message_location.start_pos()), isolate);
885 Handle<Smi> end_pos(Smi::FromInt(message_location.end_pos()), isolate); 885 Handle<Smi> end_pos(Smi::FromInt(message_location.end_pos()), isolate);
886 Handle<JSObject> script_obj = 886 Handle<JSObject> script_obj =
887 Script::GetWrapper(message_location.script()); 887 Script::GetWrapper(message_location.script());
888 JSReceiver::SetProperty( 888 JSReceiver::SetProperty(rethrow_exception, start_pos_key, start_pos,
889 rethrow_exception, start_pos_key, start_pos, NONE, SLOPPY).Assert(); 889 SLOPPY).Assert();
890 JSReceiver::SetProperty( 890 JSReceiver::SetProperty(rethrow_exception, end_pos_key, end_pos, SLOPPY)
891 rethrow_exception, end_pos_key, end_pos, NONE, SLOPPY).Assert(); 891 .Assert();
892 JSReceiver::SetProperty( 892 JSReceiver::SetProperty(rethrow_exception, script_obj_key, script_obj,
893 rethrow_exception, script_obj_key, script_obj, NONE, SLOPPY).Assert(); 893 SLOPPY).Assert();
894 } 894 }
895 } 895 }
896 896
897 // A logical 'finally' section. 897 // A logical 'finally' section.
898 isolate->set_active_function_info_listener(NULL); 898 isolate->set_active_function_info_listener(NULL);
899 script->set_source(*original_source); 899 script->set_source(*original_source);
900 900
901 if (rethrow_exception.is_null()) { 901 if (rethrow_exception.is_null()) {
902 return listener.GetResult(); 902 return listener.GetResult();
903 } else { 903 } else {
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
2078 void LiveEditFunctionTracker::RecordRootFunctionInfo(Handle<Code> code) { 2078 void LiveEditFunctionTracker::RecordRootFunctionInfo(Handle<Code> code) {
2079 isolate_->active_function_info_listener()->FunctionCode(code); 2079 isolate_->active_function_info_listener()->FunctionCode(code);
2080 } 2080 }
2081 2081
2082 2082
2083 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { 2083 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) {
2084 return isolate->active_function_info_listener() != NULL; 2084 return isolate->active_function_info_listener() != NULL;
2085 } 2085 }
2086 2086
2087 } } // namespace v8::internal 2087 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698