| OLD | NEW |
| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #ifdef ENABLE_DEBUGGER_SUPPORT | 49 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 50 | 50 |
| 51 | 51 |
| 52 void SetElementSloppy(Handle<JSObject> object, | 52 void SetElementSloppy(Handle<JSObject> object, |
| 53 uint32_t index, | 53 uint32_t index, |
| 54 Handle<Object> value) { | 54 Handle<Object> value) { |
| 55 // Ignore return value from SetElement. It can only be a failure if there | 55 // Ignore return value from SetElement. It can only be a failure if there |
| 56 // are element setters causing exceptions and the debugger context has none | 56 // are element setters causing exceptions and the debugger context has none |
| 57 // of these. | 57 // of these. |
| 58 Handle<Object> no_failure = | 58 Handle<Object> no_failure = |
| 59 JSObject::SetElement(object, index, value, NONE, kSloppyMode); | 59 JSObject::SetElement(object, index, value, NONE, SLOPPY); |
| 60 ASSERT(!no_failure.is_null()); | 60 ASSERT(!no_failure.is_null()); |
| 61 USE(no_failure); | 61 USE(no_failure); |
| 62 } | 62 } |
| 63 | 63 |
| 64 | 64 |
| 65 // A simple implementation of dynamic programming algorithm. It solves | 65 // A simple implementation of dynamic programming algorithm. It solves |
| 66 // the problem of finding the difference of 2 arrays. It uses a table of results | 66 // the problem of finding the difference of 2 arrays. It uses a table of results |
| 67 // of subproblems. Each cell contains a number together with 2-bit flag | 67 // of subproblems. Each cell contains a number together with 2-bit flag |
| 68 // that helps building the chunk list. | 68 // that helps building the chunk list. |
| 69 class Differencer { | 69 class Differencer { |
| (...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 STATIC_ASCII_VECTOR("startPosition")); | 952 STATIC_ASCII_VECTOR("startPosition")); |
| 953 Handle<String> end_pos_key = factory->InternalizeOneByteString( | 953 Handle<String> end_pos_key = factory->InternalizeOneByteString( |
| 954 STATIC_ASCII_VECTOR("endPosition")); | 954 STATIC_ASCII_VECTOR("endPosition")); |
| 955 Handle<String> script_obj_key = factory->InternalizeOneByteString( | 955 Handle<String> script_obj_key = factory->InternalizeOneByteString( |
| 956 STATIC_ASCII_VECTOR("scriptObject")); | 956 STATIC_ASCII_VECTOR("scriptObject")); |
| 957 Handle<Smi> start_pos( | 957 Handle<Smi> start_pos( |
| 958 Smi::FromInt(message_location.start_pos()), isolate); | 958 Smi::FromInt(message_location.start_pos()), isolate); |
| 959 Handle<Smi> end_pos(Smi::FromInt(message_location.end_pos()), isolate); | 959 Handle<Smi> end_pos(Smi::FromInt(message_location.end_pos()), isolate); |
| 960 Handle<JSValue> script_obj = GetScriptWrapper(message_location.script()); | 960 Handle<JSValue> script_obj = GetScriptWrapper(message_location.script()); |
| 961 JSReceiver::SetProperty( | 961 JSReceiver::SetProperty( |
| 962 rethrow_exception, start_pos_key, start_pos, NONE, kSloppyMode); | 962 rethrow_exception, start_pos_key, start_pos, NONE, SLOPPY); |
| 963 JSReceiver::SetProperty( | 963 JSReceiver::SetProperty( |
| 964 rethrow_exception, end_pos_key, end_pos, NONE, kSloppyMode); | 964 rethrow_exception, end_pos_key, end_pos, NONE, SLOPPY); |
| 965 JSReceiver::SetProperty( | 965 JSReceiver::SetProperty( |
| 966 rethrow_exception, script_obj_key, script_obj, NONE, kSloppyMode); | 966 rethrow_exception, script_obj_key, script_obj, NONE, SLOPPY); |
| 967 } | 967 } |
| 968 } | 968 } |
| 969 | 969 |
| 970 // A logical 'finally' section. | 970 // A logical 'finally' section. |
| 971 isolate->set_active_function_info_listener(NULL); | 971 isolate->set_active_function_info_listener(NULL); |
| 972 script->set_source(*original_source); | 972 script->set_source(*original_source); |
| 973 | 973 |
| 974 if (rethrow_exception.is_null()) { | 974 if (rethrow_exception.is_null()) { |
| 975 return *(listener.GetResult()); | 975 return *(listener.GetResult()); |
| 976 } else { | 976 } else { |
| (...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2130 | 2130 |
| 2131 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { | 2131 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { |
| 2132 return false; | 2132 return false; |
| 2133 } | 2133 } |
| 2134 | 2134 |
| 2135 #endif // ENABLE_DEBUGGER_SUPPORT | 2135 #endif // ENABLE_DEBUGGER_SUPPORT |
| 2136 | 2136 |
| 2137 | 2137 |
| 2138 | 2138 |
| 2139 } } // namespace v8::internal | 2139 } } // namespace v8::internal |
| OLD | NEW |