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

Side by Side Diff: src/jsregexp.cc

Issue 564035: Remove lazy loading of natives files and the natives cache.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: Created 10 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « src/json-delay.js ('k') | src/macros.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 60
61 namespace v8 { 61 namespace v8 {
62 namespace internal { 62 namespace internal {
63 63
64 64
65 Handle<Object> RegExpImpl::CreateRegExpLiteral(Handle<JSFunction> constructor, 65 Handle<Object> RegExpImpl::CreateRegExpLiteral(Handle<JSFunction> constructor,
66 Handle<String> pattern, 66 Handle<String> pattern,
67 Handle<String> flags, 67 Handle<String> flags,
68 bool* has_pending_exception) { 68 bool* has_pending_exception) {
69 // Ensure that the constructor function has been loaded.
70 if (!constructor->IsLoaded()) {
71 LoadLazy(constructor, has_pending_exception);
72 if (*has_pending_exception) return Handle<Object>();
73 }
74 // Call the construct code with 2 arguments. 69 // Call the construct code with 2 arguments.
75 Object** argv[2] = { Handle<Object>::cast(pattern).location(), 70 Object** argv[2] = { Handle<Object>::cast(pattern).location(),
76 Handle<Object>::cast(flags).location() }; 71 Handle<Object>::cast(flags).location() };
77 return Execution::New(constructor, 2, argv, has_pending_exception); 72 return Execution::New(constructor, 2, argv, has_pending_exception);
78 } 73 }
79 74
80 75
81 static JSRegExp::Flags RegExpFlagsFromString(Handle<String> str) { 76 static JSRegExp::Flags RegExpFlagsFromString(Handle<String> str) {
82 int flags = JSRegExp::NONE; 77 int flags = JSRegExp::NONE;
83 for (int i = 0; i < str->length(); i++) { 78 for (int i = 0; i < str->length(); i++) {
(...skipping 5141 matching lines...) Expand 10 before | Expand all | Expand 10 after
5225 node, 5220 node,
5226 data->capture_count, 5221 data->capture_count,
5227 pattern); 5222 pattern);
5228 } 5223 }
5229 5224
5230 5225
5231 int OffsetsVector::static_offsets_vector_[ 5226 int OffsetsVector::static_offsets_vector_[
5232 OffsetsVector::kStaticOffsetsVectorSize]; 5227 OffsetsVector::kStaticOffsetsVectorSize];
5233 5228
5234 }} // namespace v8::internal 5229 }} // namespace v8::internal
OLDNEW
« no previous file with comments | « src/json-delay.js ('k') | src/macros.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698