Index: src/contexts.cc |
diff --git a/src/contexts.cc b/src/contexts.cc |
index 5ee0d4bec06b0296048e698a407b2e0bc547f769..d6866d004dd00251cb716bee4233c0b5016343e4 100644 |
--- a/src/contexts.cc |
+++ b/src/contexts.cc |
@@ -365,11 +365,11 @@ Object* Context::DeoptimizedCodeListHead() { |
Handle<Object> Context::ErrorMessageForCodeGenerationFromStrings() { |
- Handle<Object> result(error_message_for_code_gen_from_strings(), |
- GetIsolate()); |
+ Isolate* isolate = GetIsolate(); |
+ Handle<Object> result(error_message_for_code_gen_from_strings(), isolate); |
if (!result->IsUndefined()) return result; |
- return GetIsolate()->factory()->NewStringFromOneByte(STATIC_ASCII_VECTOR( |
- "Code generation from strings disallowed for this context")); |
+ return isolate->factory()->NewStringFromStaticAscii( |
+ "Code generation from strings disallowed for this context"); |
} |