| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #include <cstdlib> | 28 #include <cstdlib> |
| 29 #include <sstream> | 29 #include <sstream> |
| 30 | 30 |
| 31 #include "include/v8.h" | 31 #include "include/v8.h" |
| 32 #include "src/v8.h" | 32 #include "src/v8.h" |
| 33 | 33 |
| 34 #include "src/ast/ast.h" | 34 #include "src/ast/ast.h" |
| 35 #include "src/char-predicates-inl.h" | 35 #include "src/char-predicates-inl.h" |
| 36 #include "src/ostreams.h" | 36 #include "src/ostreams.h" |
| 37 #include "src/parsing/parser.h" | |
| 38 #include "src/regexp/jsregexp.h" | 37 #include "src/regexp/jsregexp.h" |
| 39 #include "src/regexp/regexp-macro-assembler.h" | 38 #include "src/regexp/regexp-macro-assembler.h" |
| 40 #include "src/regexp/regexp-macro-assembler-irregexp.h" | 39 #include "src/regexp/regexp-macro-assembler-irregexp.h" |
| 40 #include "src/regexp/regexp-parser.h" |
| 41 #include "src/splay-tree-inl.h" | 41 #include "src/splay-tree-inl.h" |
| 42 #include "src/string-stream.h" | 42 #include "src/string-stream.h" |
| 43 #ifdef V8_INTERPRETED_REGEXP | 43 #ifdef V8_INTERPRETED_REGEXP |
| 44 #include "src/regexp/interpreter-irregexp.h" | 44 #include "src/regexp/interpreter-irregexp.h" |
| 45 #else // V8_INTERPRETED_REGEXP | 45 #else // V8_INTERPRETED_REGEXP |
| 46 #include "src/macro-assembler.h" | 46 #include "src/macro-assembler.h" |
| 47 #if V8_TARGET_ARCH_ARM | 47 #if V8_TARGET_ARCH_ARM |
| 48 #include "src/arm/assembler-arm.h" // NOLINT | 48 #include "src/arm/assembler-arm.h" // NOLINT |
| 49 #include "src/arm/macro-assembler-arm.h" | 49 #include "src/arm/macro-assembler-arm.h" |
| 50 #include "src/regexp/arm/regexp-macro-assembler-arm.h" | 50 #include "src/regexp/arm/regexp-macro-assembler-arm.h" |
| (...skipping 1869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1920 // .toString() throws on non-RegExps that aren't RegExp.prototype | 1920 // .toString() throws on non-RegExps that aren't RegExp.prototype |
| 1921 v8::Local<v8::Value> resultToStringError = CompileRun( | 1921 v8::Local<v8::Value> resultToStringError = CompileRun( |
| 1922 "var exception;" | 1922 "var exception;" |
| 1923 "try { RegExp.prototype.toString.call(null) }" | 1923 "try { RegExp.prototype.toString.call(null) }" |
| 1924 "catch (e) { exception = e; }" | 1924 "catch (e) { exception = e; }" |
| 1925 "exception"); | 1925 "exception"); |
| 1926 CHECK_EQ(1, use_counts[v8::Isolate::kRegExpPrototypeStickyGetter]); | 1926 CHECK_EQ(1, use_counts[v8::Isolate::kRegExpPrototypeStickyGetter]); |
| 1927 CHECK_EQ(1, use_counts[v8::Isolate::kRegExpPrototypeToString]); | 1927 CHECK_EQ(1, use_counts[v8::Isolate::kRegExpPrototypeToString]); |
| 1928 CHECK(resultToStringError->IsObject()); | 1928 CHECK(resultToStringError->IsObject()); |
| 1929 } | 1929 } |
| OLD | NEW |