Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 673bb23031733ad2c5acde104e94a256b5a9ea70..dc07768b6ad78470e8254ef9f90e0485b0241903 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -31,6 +31,7 @@ |
#include "debug.h" |
#include "execution.h" |
#include "factory.h" |
+#include "isolate-inl.h" |
#include "macro-assembler.h" |
#include "objects.h" |
#include "objects-visiting.h" |
@@ -177,6 +178,7 @@ Handle<String> Factory::InternalizeUtf8String(Vector<const char> string) { |
String); |
} |
+ |
// Internalized strings are created in the old generation (data space). |
Handle<String> Factory::InternalizeString(Handle<String> string) { |
CALL_HEAP_FUNCTION(isolate(), |
@@ -184,6 +186,7 @@ Handle<String> Factory::InternalizeString(Handle<String> string) { |
String); |
} |
+ |
Handle<String> Factory::InternalizeOneByteString(Vector<const uint8_t> string) { |
CALL_HEAP_FUNCTION(isolate(), |
isolate()->heap()->InternalizeOneByteString(string), |
@@ -516,6 +519,14 @@ Handle<PropertyCell> Factory::NewPropertyCell(Handle<Object> value) { |
} |
+Handle<AllocationSite> Factory::NewAllocationSite() { |
+ CALL_HEAP_FUNCTION( |
+ isolate(), |
+ isolate()->heap()->AllocateAllocationSite(), |
+ AllocationSite); |
+} |
+ |
+ |
Handle<Map> Factory::NewMap(InstanceType type, |
int instance_size, |
ElementsKind elements_kind) { |
@@ -660,7 +671,8 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo( |
result->is_compiled() && |
!function_info->is_toplevel() && |
function_info->allows_lazy_compilation() && |
- !function_info->optimization_disabled()) { |
+ !function_info->optimization_disabled() && |
+ !isolate()->DebuggerHasBreakPoints()) { |
result->MarkForLazyRecompilation(); |
} |
return result; |
@@ -1233,6 +1245,7 @@ Handle<JSMessageObject> Factory::NewJSMessageObject( |
JSMessageObject); |
} |
+ |
Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) { |
CALL_HEAP_FUNCTION(isolate(), |
isolate()->heap()->AllocateSharedFunctionInfo(*name), |