Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1406)

Side by Side Diff: test/test262/testcfg.py

Issue 1402093002: [Interpreter]: Add fake support for try/catch/finally. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/interpreter/test-interpreter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 testname = relpath.replace(os.path.sep, "/") 122 testname = relpath.replace(os.path.sep, "/")
123 case = testcase.TestCase(self, testname) 123 case = testcase.TestCase(self, testname)
124 tests.append(case) 124 tests.append(case)
125 return tests 125 return tests
126 126
127 def GetFlagsForTestCase(self, testcase, context): 127 def GetFlagsForTestCase(self, testcase, context):
128 # TODO(rmcilroy) Remove ignition filter modification once ignition can 128 # TODO(rmcilroy) Remove ignition filter modification once ignition can
129 # support the test262 test harness code. 129 # support the test262 test harness code.
130 flags = testcase.flags 130 flags = testcase.flags
131 if '--ignition' in flags: 131 if '--ignition' in flags:
132 flags += [self.ignition_script_filter] 132 flags += [self.ignition_script_filter, "--ignition-fake-try-catch"]
133 133
134 return (flags + context.mode_flags + self.harness + 134 return (flags + context.mode_flags + self.harness +
135 self.GetIncludesForTest(testcase) + ["--harmony"] + 135 self.GetIncludesForTest(testcase) + ["--harmony"] +
136 [os.path.join(self.testroot, testcase.path + ".js")]) 136 [os.path.join(self.testroot, testcase.path + ".js")])
137 137
138 def _VariantGeneratorFactory(self): 138 def _VariantGeneratorFactory(self):
139 return Test262VariantGenerator 139 return Test262VariantGenerator
140 140
141 def LoadParseTestRecord(self): 141 def LoadParseTestRecord(self):
142 if not self.ParseTestRecord: 142 if not self.ParseTestRecord:
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 archive_files = [f for f in os.listdir(self.root) 202 archive_files = [f for f in os.listdir(self.root)
203 if f.startswith("tc39-test262-")] 203 if f.startswith("tc39-test262-")]
204 if len(archive_files) > 0: 204 if len(archive_files) > 0:
205 print "Clobber outdated test archives ..." 205 print "Clobber outdated test archives ..."
206 for f in archive_files: 206 for f in archive_files:
207 os.remove(os.path.join(self.root, f)) 207 os.remove(os.path.join(self.root, f))
208 208
209 209
210 def GetSuite(name, root): 210 def GetSuite(name, root):
211 return Test262TestSuite(name, root) 211 return Test262TestSuite(name, root)
OLDNEW
« no previous file with comments | « test/cctest/interpreter/test-interpreter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698