| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/objects.h" | 5 #include "src/objects.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 #include <iomanip> | 8 #include <iomanip> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <sstream> | 10 #include <sstream> |
| (...skipping 16466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16477 private: | 16477 private: |
| 16478 Handle<String> source_; | 16478 Handle<String> source_; |
| 16479 Handle<SharedFunctionInfo> shared_; | 16479 Handle<SharedFunctionInfo> shared_; |
| 16480 LanguageMode language_mode_; | 16480 LanguageMode language_mode_; |
| 16481 int scope_position_; | 16481 int scope_position_; |
| 16482 }; | 16482 }; |
| 16483 | 16483 |
| 16484 // static | 16484 // static |
| 16485 const char* JSPromise::Status(int status) { | 16485 const char* JSPromise::Status(int status) { |
| 16486 switch (status) { | 16486 switch (status) { |
| 16487 case kPromiseFulfilled: | 16487 case v8::Promise::kFulfilled: |
| 16488 return "resolved"; | 16488 return "resolved"; |
| 16489 case kPromisePending: | 16489 case v8::Promise::kPending: |
| 16490 return "pending"; | 16490 return "pending"; |
| 16491 case kPromiseRejected: | 16491 case v8::Promise::kRejected: |
| 16492 return "rejected"; | 16492 return "rejected"; |
| 16493 } | 16493 } |
| 16494 UNREACHABLE(); | 16494 UNREACHABLE(); |
| 16495 return NULL; | 16495 return NULL; |
| 16496 } | 16496 } |
| 16497 | 16497 |
| 16498 namespace { | 16498 namespace { |
| 16499 | 16499 |
| 16500 JSRegExp::Flags RegExpFlagsFromString(Handle<String> flags, bool* success) { | 16500 JSRegExp::Flags RegExpFlagsFromString(Handle<String> flags, bool* success) { |
| 16501 JSRegExp::Flags value = JSRegExp::kNone; | 16501 JSRegExp::Flags value = JSRegExp::kNone; |
| (...skipping 3938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20440 // depend on this. | 20440 // depend on this. |
| 20441 return DICTIONARY_ELEMENTS; | 20441 return DICTIONARY_ELEMENTS; |
| 20442 } | 20442 } |
| 20443 DCHECK_LE(kind, LAST_ELEMENTS_KIND); | 20443 DCHECK_LE(kind, LAST_ELEMENTS_KIND); |
| 20444 return kind; | 20444 return kind; |
| 20445 } | 20445 } |
| 20446 } | 20446 } |
| 20447 | 20447 |
| 20448 } // namespace internal | 20448 } // namespace internal |
| 20449 } // namespace v8 | 20449 } // namespace v8 |
| OLD | NEW |