| OLD | NEW | 
|     1 // Copyright 2014 the V8 project authors. All rights reserved. |     1 // Copyright 2014 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 "src/v8.h" |     5 #include "src/v8.h" | 
|     6  |     6  | 
|     7 #include "src/arguments.h" |     7 #include "src/arguments.h" | 
|     8 #include "src/bootstrapper.h" |     8 #include "src/bootstrapper.h" | 
|     9 #include "src/debug.h" |     9 #include "src/debug.h" | 
|    10 #include "src/runtime/runtime.h" |    10 #include "src/runtime/runtime.h" | 
| (...skipping 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1598 } |  1598 } | 
|  1599  |  1599  | 
|  1600  |  1600  | 
|  1601 RUNTIME_FUNCTION(RuntimeReference_ClassOf) { |  1601 RUNTIME_FUNCTION(RuntimeReference_ClassOf) { | 
|  1602   SealHandleScope shs(isolate); |  1602   SealHandleScope shs(isolate); | 
|  1603   DCHECK(args.length() == 1); |  1603   DCHECK(args.length() == 1); | 
|  1604   CONVERT_ARG_CHECKED(Object, obj, 0); |  1604   CONVERT_ARG_CHECKED(Object, obj, 0); | 
|  1605   if (!obj->IsJSReceiver()) return isolate->heap()->null_value(); |  1605   if (!obj->IsJSReceiver()) return isolate->heap()->null_value(); | 
|  1606   return JSReceiver::cast(obj)->class_name(); |  1606   return JSReceiver::cast(obj)->class_name(); | 
|  1607 } |  1607 } | 
 |  1608  | 
 |  1609  | 
 |  1610 RUNTIME_FUNCTION(Runtime_DefineGetterPropertyUnchecked) { | 
 |  1611   HandleScope scope(isolate); | 
 |  1612   DCHECK(args.length() == 3); | 
 |  1613   CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); | 
 |  1614   CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); | 
 |  1615   CONVERT_ARG_HANDLE_CHECKED(JSFunction, getter, 2); | 
 |  1616  | 
 |  1617   RETURN_FAILURE_ON_EXCEPTION( | 
 |  1618       isolate, | 
 |  1619       JSObject::DefineAccessor(object, name, getter, | 
 |  1620                                isolate->factory()->null_value(), NONE)); | 
 |  1621   return isolate->heap()->undefined_value(); | 
 |  1622 } | 
 |  1623  | 
 |  1624  | 
 |  1625 RUNTIME_FUNCTION(Runtime_DefineSetterPropertyUnchecked) { | 
 |  1626   HandleScope scope(isolate); | 
 |  1627   DCHECK(args.length() == 3); | 
 |  1628   CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); | 
 |  1629   CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); | 
 |  1630   CONVERT_ARG_HANDLE_CHECKED(JSFunction, setter, 2); | 
 |  1631  | 
 |  1632   RETURN_FAILURE_ON_EXCEPTION( | 
 |  1633       isolate, | 
 |  1634       JSObject::DefineAccessor(object, name, isolate->factory()->null_value(), | 
 |  1635                                setter, NONE)); | 
 |  1636   return isolate->heap()->undefined_value(); | 
 |  1637 } | 
|  1608 } |  1638 } | 
|  1609 }  // namespace v8::internal |  1639 }  // namespace v8::internal | 
| OLD | NEW |