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

Side by Side Diff: src/bootstrapper.cc

Issue 9572008: Implement date library functions in C++. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add DST test and fix bugs. Created 8 years, 9 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/assembler.cc ('k') | src/date.h » ('j') | src/date.h » ('J')
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 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 READ_ONLY)); 920 READ_ONLY));
921 921
922 Handle<Map> string_map = 922 Handle<Map> string_map =
923 Handle<Map>(global_context()->string_function()->initial_map()); 923 Handle<Map>(global_context()->string_function()->initial_map());
924 string_map->set_instance_descriptors(*string_descriptors); 924 string_map->set_instance_descriptors(*string_descriptors);
925 } 925 }
926 926
927 { // --- D a t e --- 927 { // --- D a t e ---
928 // Builtin functions for Date.prototype. 928 // Builtin functions for Date.prototype.
929 Handle<JSFunction> date_fun = 929 Handle<JSFunction> date_fun =
930 InstallFunction(global, "Date", JS_VALUE_TYPE, JSValue::kSize, 930 InstallFunction(global, "Date", JS_DATE_TYPE, JSDate::kSize,
931 isolate->initial_object_prototype(), 931 isolate->initial_object_prototype(),
932 Builtins::kIllegal, true); 932 Builtins::kIllegal, true);
933 933
934 global_context()->set_date_function(*date_fun); 934 global_context()->set_date_function(*date_fun);
935 } 935 }
936 936
937 937
938 { // -- R e g E x p 938 { // -- R e g E x p
939 // Builtin functions for RegExp.prototype. 939 // Builtin functions for RegExp.prototype.
940 Handle<JSFunction> regexp_fun = 940 Handle<JSFunction> regexp_fun =
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
2356 return from + sizeof(NestingCounterType); 2356 return from + sizeof(NestingCounterType);
2357 } 2357 }
2358 2358
2359 2359
2360 // Called when the top-level V8 mutex is destroyed. 2360 // Called when the top-level V8 mutex is destroyed.
2361 void Bootstrapper::FreeThreadResources() { 2361 void Bootstrapper::FreeThreadResources() {
2362 ASSERT(!IsActive()); 2362 ASSERT(!IsActive());
2363 } 2363 }
2364 2364
2365 } } // namespace v8::internal 2365 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/date.h » ('j') | src/date.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698