| OLD | NEW | 
|---|
| 1 # Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 # Copyright 2006-2009 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 26 matching lines...) Expand all  Loading... | 
| 37 const GETTER = 0; | 37 const GETTER = 0; | 
| 38 const SETTER = 1; | 38 const SETTER = 1; | 
| 39 | 39 | 
| 40 # These definitions must match the index of the properties in objects.h. | 40 # These definitions must match the index of the properties in objects.h. | 
| 41 const kApiTagOffset                 = 0; | 41 const kApiTagOffset                 = 0; | 
| 42 const kApiPropertyListOffset        = 1; | 42 const kApiPropertyListOffset        = 1; | 
| 43 const kApiSerialNumberOffset        = 2; | 43 const kApiSerialNumberOffset        = 2; | 
| 44 const kApiConstructorOffset         = 2; | 44 const kApiConstructorOffset         = 2; | 
| 45 const kApiPrototypeTemplateOffset   = 5; | 45 const kApiPrototypeTemplateOffset   = 5; | 
| 46 const kApiParentTemplateOffset      = 6; | 46 const kApiParentTemplateOffset      = 6; | 
| 47 const kApiPrototypeAttributesOffset = 15; | 47 const kApiFlagOffset                = 14; | 
| 48 | 48 | 
| 49 const NO_HINT     = 0; | 49 const NO_HINT     = 0; | 
| 50 const NUMBER_HINT = 1; | 50 const NUMBER_HINT = 1; | 
| 51 const STRING_HINT = 2; | 51 const STRING_HINT = 2; | 
| 52 | 52 | 
| 53 const kFunctionTag  = 0; | 53 const kFunctionTag  = 0; | 
| 54 const kNewObjectTag = 1; | 54 const kNewObjectTag = 1; | 
| 55 | 55 | 
| 56 # For date.js. | 56 # For date.js. | 
| 57 const HoursPerDay      = 24; | 57 const HoursPerDay      = 24; | 
| 58 const MinutesPerHour   = 60; | 58 const MinutesPerHour   = 60; | 
| 59 const SecondsPerMinute = 60; | 59 const SecondsPerMinute = 60; | 
| 60 const msPerSecond      = 1000; | 60 const msPerSecond      = 1000; | 
| 61 const msPerMinute      = 60000; | 61 const msPerMinute      = 60000; | 
| 62 const msPerHour        = 3600000; | 62 const msPerHour        = 3600000; | 
| 63 const msPerDay         = 86400000; | 63 const msPerDay         = 86400000; | 
| 64 const msPerMonth       = 2592000000; | 64 const msPerMonth       = 2592000000; | 
| 65 | 65 | 
| 66 # For apinatives.js | 66 # For apinatives.js | 
| 67 const kUninitialized = -1; | 67 const kUninitialized = -1; | 
|  | 68 const kReadOnlyPrototypeBit = 3;  # For FunctionTemplateInfo, matches objects.h | 
| 68 | 69 | 
| 69 # Note: kDayZeroInJulianDay = ToJulianDay(1970, 0, 1). | 70 # Note: kDayZeroInJulianDay = ToJulianDay(1970, 0, 1). | 
| 70 const kInvalidDate        = 'Invalid Date'; | 71 const kInvalidDate        = 'Invalid Date'; | 
| 71 const kDayZeroInJulianDay = 2440588; | 72 const kDayZeroInJulianDay = 2440588; | 
| 72 const kMonthMask          = 0x1e0; | 73 const kMonthMask          = 0x1e0; | 
| 73 const kDayMask            = 0x01f; | 74 const kDayMask            = 0x01f; | 
| 74 const kYearShift          = 9; | 75 const kYearShift          = 9; | 
| 75 const kMonthShift         = 5; | 76 const kMonthShift         = 5; | 
| 76 | 77 | 
| 77 # Limits for parts of the date, so that we support all the dates that | 78 # Limits for parts of the date, so that we support all the dates that | 
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 171 | 172 | 
| 172 # PropertyDescriptor return value indices - must match | 173 # PropertyDescriptor return value indices - must match | 
| 173 # PropertyDescriptorIndices in runtime.cc. | 174 # PropertyDescriptorIndices in runtime.cc. | 
| 174 const IS_ACCESSOR_INDEX = 0; | 175 const IS_ACCESSOR_INDEX = 0; | 
| 175 const VALUE_INDEX = 1; | 176 const VALUE_INDEX = 1; | 
| 176 const GETTER_INDEX = 2; | 177 const GETTER_INDEX = 2; | 
| 177 const SETTER_INDEX = 3; | 178 const SETTER_INDEX = 3; | 
| 178 const WRITABLE_INDEX = 4; | 179 const WRITABLE_INDEX = 4; | 
| 179 const ENUMERABLE_INDEX = 5; | 180 const ENUMERABLE_INDEX = 5; | 
| 180 const CONFIGURABLE_INDEX = 6; | 181 const CONFIGURABLE_INDEX = 6; | 
| OLD | NEW | 
|---|