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

Side by Side Diff: src/runtime.cc

Issue 408463003: Remove harmony-typeof (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update flag description for harmony 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/mips64/lithium-codegen-mips64.cc ('k') | src/x64/full-codegen-x64.cc » ('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 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <limits> 6 #include <limits>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 5948 matching lines...) Expand 10 before | Expand all | Expand 10 after
5959 if (instance_type < FIRST_NONSTRING_TYPE) { 5959 if (instance_type < FIRST_NONSTRING_TYPE) {
5960 return isolate->heap()->string_string(); 5960 return isolate->heap()->string_string();
5961 } 5961 }
5962 5962
5963 switch (instance_type) { 5963 switch (instance_type) {
5964 case ODDBALL_TYPE: 5964 case ODDBALL_TYPE:
5965 if (heap_obj->IsTrue() || heap_obj->IsFalse()) { 5965 if (heap_obj->IsTrue() || heap_obj->IsFalse()) {
5966 return isolate->heap()->boolean_string(); 5966 return isolate->heap()->boolean_string();
5967 } 5967 }
5968 if (heap_obj->IsNull()) { 5968 if (heap_obj->IsNull()) {
5969 return FLAG_harmony_typeof 5969 return isolate->heap()->object_string();
5970 ? isolate->heap()->null_string()
5971 : isolate->heap()->object_string();
5972 } 5970 }
5973 ASSERT(heap_obj->IsUndefined()); 5971 ASSERT(heap_obj->IsUndefined());
5974 return isolate->heap()->undefined_string(); 5972 return isolate->heap()->undefined_string();
5975 case SYMBOL_TYPE: 5973 case SYMBOL_TYPE:
5976 return isolate->heap()->symbol_string(); 5974 return isolate->heap()->symbol_string();
5977 case JS_FUNCTION_TYPE: 5975 case JS_FUNCTION_TYPE:
5978 case JS_FUNCTION_PROXY_TYPE: 5976 case JS_FUNCTION_PROXY_TYPE:
5979 return isolate->heap()->function_string(); 5977 return isolate->heap()->function_string();
5980 default: 5978 default:
5981 // For any kind of object not handled above, the spec rule for 5979 // For any kind of object not handled above, the spec rule for
(...skipping 8961 matching lines...) Expand 10 before | Expand all | Expand 10 after
14943 } 14941 }
14944 return NULL; 14942 return NULL;
14945 } 14943 }
14946 14944
14947 14945
14948 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 14946 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
14949 return &(kIntrinsicFunctions[static_cast<int>(id)]); 14947 return &(kIntrinsicFunctions[static_cast<int>(id)]);
14950 } 14948 }
14951 14949
14952 } } // namespace v8::internal 14950 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips64/lithium-codegen-mips64.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698