| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 const MinutesPerHour = 60; | 60 const MinutesPerHour = 60; |
| 61 const SecondsPerMinute = 60; | 61 const SecondsPerMinute = 60; |
| 62 const msPerSecond = 1000; | 62 const msPerSecond = 1000; |
| 63 const msPerMinute = 60000; | 63 const msPerMinute = 60000; |
| 64 const msPerHour = 3600000; | 64 const msPerHour = 3600000; |
| 65 const msPerDay = 86400000; | 65 const msPerDay = 86400000; |
| 66 const msPerMonth = 2592000000; | 66 const msPerMonth = 2592000000; |
| 67 | 67 |
| 68 # For apinatives.js | 68 # For apinatives.js |
| 69 const kUninitialized = -1; | 69 const kUninitialized = -1; |
| 70 const kReadOnlyPrototypeBit = 3; # For FunctionTemplateInfo, matches objects.h | 70 const kReadOnlyPrototypeBit = 3; |
| 71 const kRemovePrototypeBit = 4; # For FunctionTemplateInfo, matches objects.h |
| 71 | 72 |
| 72 # Note: kDayZeroInJulianDay = ToJulianDay(1970, 0, 1). | 73 # Note: kDayZeroInJulianDay = ToJulianDay(1970, 0, 1). |
| 73 const kInvalidDate = 'Invalid Date'; | 74 const kInvalidDate = 'Invalid Date'; |
| 74 const kDayZeroInJulianDay = 2440588; | 75 const kDayZeroInJulianDay = 2440588; |
| 75 const kMonthMask = 0x1e0; | 76 const kMonthMask = 0x1e0; |
| 76 const kDayMask = 0x01f; | 77 const kDayMask = 0x01f; |
| 77 const kYearShift = 9; | 78 const kYearShift = 9; |
| 78 const kMonthShift = 5; | 79 const kMonthShift = 5; |
| 79 | 80 |
| 80 # Limits for parts of the date, so that we support all the dates that | 81 # Limits for parts of the date, so that we support all the dates that |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 const TYPE_EXTENSION = 1; | 240 const TYPE_EXTENSION = 1; |
| 240 const TYPE_NORMAL = 2; | 241 const TYPE_NORMAL = 2; |
| 241 | 242 |
| 242 # Matches Script::CompilationType from objects.h | 243 # Matches Script::CompilationType from objects.h |
| 243 const COMPILATION_TYPE_HOST = 0; | 244 const COMPILATION_TYPE_HOST = 0; |
| 244 const COMPILATION_TYPE_EVAL = 1; | 245 const COMPILATION_TYPE_EVAL = 1; |
| 245 const COMPILATION_TYPE_JSON = 2; | 246 const COMPILATION_TYPE_JSON = 2; |
| 246 | 247 |
| 247 # Matches Messages::kNoLineNumberInfo from v8.h | 248 # Matches Messages::kNoLineNumberInfo from v8.h |
| 248 const kNoLineNumberInfo = 0; | 249 const kNoLineNumberInfo = 0; |
| OLD | NEW |