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 27 matching lines...) Expand all Loading... |
38 #include "global-handles.h" | 38 #include "global-handles.h" |
39 #include "messages.h" | 39 #include "messages.h" |
40 #include "parser.h" | 40 #include "parser.h" |
41 #include "scopeinfo.h" | 41 #include "scopeinfo.h" |
42 #include "scopes.h" | 42 #include "scopes.h" |
43 #include "v8memory.h" | 43 #include "v8memory.h" |
44 | 44 |
45 namespace v8 { | 45 namespace v8 { |
46 namespace internal { | 46 namespace internal { |
47 | 47 |
48 | |
49 #ifdef ENABLE_DEBUGGER_SUPPORT | |
50 | |
51 | |
52 void SetElementSloppy(Handle<JSObject> object, | 48 void SetElementSloppy(Handle<JSObject> object, |
53 uint32_t index, | 49 uint32_t index, |
54 Handle<Object> value) { | 50 Handle<Object> value) { |
55 // Ignore return value from SetElement. It can only be a failure if there | 51 // 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 | 52 // are element setters causing exceptions and the debugger context has none |
57 // of these. | 53 // of these. |
58 JSObject::SetElement(object, index, value, NONE, SLOPPY).Assert(); | 54 JSObject::SetElement(object, index, value, NONE, SLOPPY).Assert(); |
59 } | 55 } |
60 | 56 |
61 | 57 |
(...skipping 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1969 | 1965 |
1970 void LiveEditFunctionTracker::RecordRootFunctionInfo(Handle<Code> code) { | 1966 void LiveEditFunctionTracker::RecordRootFunctionInfo(Handle<Code> code) { |
1971 isolate_->active_function_info_listener()->FunctionCode(code); | 1967 isolate_->active_function_info_listener()->FunctionCode(code); |
1972 } | 1968 } |
1973 | 1969 |
1974 | 1970 |
1975 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { | 1971 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { |
1976 return isolate->active_function_info_listener() != NULL; | 1972 return isolate->active_function_info_listener() != NULL; |
1977 } | 1973 } |
1978 | 1974 |
1979 | |
1980 #else // ENABLE_DEBUGGER_SUPPORT | |
1981 | |
1982 // This ifdef-else-endif section provides working or stub implementation of | |
1983 // LiveEditFunctionTracker. | |
1984 LiveEditFunctionTracker::LiveEditFunctionTracker(Isolate* isolate, | |
1985 FunctionLiteral* fun) { | |
1986 } | |
1987 | |
1988 | |
1989 LiveEditFunctionTracker::~LiveEditFunctionTracker() { | |
1990 } | |
1991 | |
1992 | |
1993 void LiveEditFunctionTracker::RecordFunctionInfo( | |
1994 Handle<SharedFunctionInfo> info, FunctionLiteral* lit, | |
1995 Zone* zone) { | |
1996 } | |
1997 | |
1998 | |
1999 void LiveEditFunctionTracker::RecordRootFunctionInfo(Handle<Code> code) { | |
2000 } | |
2001 | |
2002 | |
2003 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { | |
2004 return false; | |
2005 } | |
2006 | |
2007 #endif // ENABLE_DEBUGGER_SUPPORT | |
2008 | |
2009 | |
2010 | |
2011 } } // namespace v8::internal | 1975 } } // namespace v8::internal |
OLD | NEW |